#include using namespace std; class Rectangle { friend class Cuboid; private: int width, height; public: Rectangle(int w, int h); Rectangle() {} void setWidth(int w); void setHeight(int h); int getWidth(); int getHeight(); }; Rectangle::Rectangle(int w, int h) { width = w; height = h; } void Rectangle::setWidth(int w) { width = w; } void Rectangle::setHeight(int h) { height = h; } int Rectangle::getWidth() { return width; } int Rectangle::getHeight() { return height; }