You are viewing a single comment's thread. Return to all comments →
class Rectangle { public : int width,height; void display() { cout<<width<<" "<<height; } }; class RectangleArea : public Rectangle { public : void read_input() { cin>>width>>height; } void display() { cout<<"\n"<<width * height; } }; This is the code for the problem if anyone gets stuck then you can use this to get past that hurdle thanks
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 →