You are viewing a single comment's thread. Return to all comments →
Mine was almost similar to this one. Can you explain the use of
virtual void getdata() { cin >> this->name >> this->age; } virtual void putdata() { cout << this->name << " " << this->age << endl; } };
Seems like cookies are disabled on this browser, please enable them to open this website
Virtual Functions
You are viewing a single comment's thread. Return to all comments →
Mine was almost similar to this one. Can you explain the use of