You are on page 1of 1

#include <iostream>

using namespace std;


class test
{

int a,b;
public:
void show()
{
a=10;
b=20;
cout<<"Object Address="<<this<<endl;
cout<<"a="<<this->a<<endl;
cout<<"b="<<this->b;
}
};
int main()
{
test t1,t2;
t1.show();
t2.show();
return 0;
}

You might also like