#include "Rectangle.h" #include using namespace std; int Rectangle::numOfRect = 0; Rectangle::Rectangle(double width, double height) {this->width=width;this->height=height;numOfRect++;} Rectangle::~Rectangle() {numOfRect--;} double Rectangle::getWidth() const {return width;} double Rectangle::getHeight() const {return height;} void Rectangle::setWidth(double v) {width=v;} void Rectangle::setHeight(double v) {height=v;} double Rectangle::getArea() const {return width*height;} int Rectangle::getNumOfRect() {return numOfRect;} void Rectangle::print() const {cout<