#include<iostream>
using namespace std;
class myclass
{
int a;
public:
myclass() (a-120;)
intget();
};
int my class:: get() {return a;}
int main() {
myclass ob;
myclass *p;
p=&ob;
cout<< “the output using pointers:get();
return 0;
}
#include<iostream> using namespace std; class myclass { int a; public: myclass() (a-120;) intget(); }; int my class:: get() {return a;} int main() { myclass ob; myclass *p; p=&ob; cout<< “the output using pointers:get(); return 0; }