You are viewing a single comment's thread. Return to all comments →
class Rectangle { public : int h,w; void display() { cout<<w<<" "<<h<<endl; } }; class RectangleArea:public Rectangle { public: void read_input() { cin>>w>>h; } void display() { cout<<h*w<<endl; } };
Rectangle Area
You are viewing a single comment's thread. Return to all comments →