You are viewing a single comment's thread. Return to all comments →
C++ 14
class Rectangle{ public: int w,h; void display(){ cout<<w<<" "<<h<<endl; } }; class RectangleArea : public Rectangle{ public: void read_input(){ cin >> w; cin >> h; } void display(){ cout<<w*h; } };
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 →
C++ 14