#include using namespace std; #include "Rectangle.hpp" Rectangle::Rectangle(unsigned int c, unsigned char bw, unsigned int w, unsigned int h) : Shape(c, bw) , width(w), height(h) { } void Rectangle::setWidth(unsigned int w) { width = w; } void Rectangle::setHeight(unsigned int h) { height = h; } unsigned int Rectangle::getWidth() { return width; } unsigned int Rectangle::getHeight() { return height; } unsigned int Rectangle::getArea() { /* this is how you call a function * from the parent class. */ int area = Shape::getArea(); return Shape::getArea() + width * height; } unsigned char Rectangle::getBorderWidth() { return borderWidth; } void Rectangle::setBorderWidth(unsigned char bw) { borderWidth = bw; }