#include using namespace std; class Rectangle { private: int width, height; public: Rectangle(int width, int height); void setWidth(int width); void setHeight(int height); int getWidth() const; int getHeight() const; }; Rectangle::Rectangle(int width, int height) { this->width = width; this->height = height; } void Rectangle::setWidth(int width) { this->width = width; } void Rectangle::setHeight(int height) { this->height = height; } int Rectangle::getWidth() const { return width; } int Rectangle::getHeight() const { return height; } int main() { const Rectangle rect(10,5); cout << rect.getWidth(); }