#include<iostream>
#include<conio.h>
using namespace std;
class Example{
public:
int a,b;
public:
Example(){
a=10;
b=20;
}
void Display(){
cout<<"Value : "<<a<<"\t"<<"Value : "<<b<<endl;
}
};
int main(){
Example Obj;
Obj.Display();
getch();
return 0;
}
0 comments: