You are viewing a single comment's thread. Return to all comments →
using namespace std;
class Rectangle{ protected: int width; int height; public: void display(){ cout<
class RectangleArea : public Rectangle{ public: void read_input(){ cin>>width; cin>>height; } void display(){ cout<
};
int main() {
RectangleArea obj; obj.read_input(); obj.Rectangle::display(); obj.RectangleArea::display(); return 0;
}
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 →
include
include
include
include
include
using namespace std;
class Rectangle{ protected: int width; int height; public: void display(){ cout<
class RectangleArea : public Rectangle{ public: void read_input(){ cin>>width; cin>>height; } void display(){ cout<
};
int main() {
}