#include using namespace std; class Rectangle { private: int width, height; public: void setWidth(int w); void setHeight(int h); int getWidth() const; int getHeight() const; }; void Rectangle::setWidth(int w) { width = w; } void Rectangle::setHeight(int h) { height = h; } int Rectangle::getWidth() const { return width; } int Rectangle::getHeight() const { return height; } int main () { Rectangle rect; rect.setWidth(5); rect.setHeight(6); cout << "area: " << rect.getWidth() * rect.getHeight() << endl; return 0; }