#include<iostream.h>
#include<conio.h>
class student
{
private int m;
public void putdata()
{
cout<<"Enter the value of m";
cin>>m;
}
public void getdata()
{
cout<<"The Value of Private Member is"<<m;
}
public void main()
{
student s = new student();
s.putdata();
s.getdata();
getch();
}
#include<conio.h>
class student
{
private int m;
public void putdata()
{
cout<<"Enter the value of m";
cin>>m;
}
public void getdata()
{
cout<<"The Value of Private Member is"<<m;
}
public void main()
{
student s = new student();
s.putdata();
s.getdata();
getch();
}