#include<iostream>
using namespace std;
class A
{
int a;
public:
void dp()
{
cout<<"\n Address of current obj: "<<this;
cout<<"\nenter a";
cin>>this->a;//cin>>a -> op // this ptr holds an adrress of a current obj
cout<<"\na= "<<(*this).a; // . op this->a
}
}o1,o2;
main()
{
o1.dp();
o2.dp();
}
Answers
Answered by
0
ason for her since she was so young he is a lot of fun t
Similar questions