Click to follow our Afritutor YouTube Channel, subscribe and click notifications and get updates on new learning videos
#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; }