You are viewing a single comment's thread. Return to all comments →
class Rectangle{ protected: int width, height; public: void display(){ cout << width << " " << height; } }; class RectangleArea : public Rectangle{ public: void read_input(){ cin >> width >> height; } void display(){ cout << endl << width*height; } };
Seems like cookies are disabled on this browser, please enable them to open this website
Rectangle Area
You are viewing a single comment's thread. Return to all comments →