#include "Rectangle.hpp" Rectangle::Rectangle(int w, int h) { width = w; height = h; } Rectangle::Rectangle(int s) { width = s; height = s; } Rectangle::Rectangle() { srand(time(NULL)); width = rand() % 10 + 1; height = rand() % 10 + 1; } 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; }