Question: Inclement the C++ class Rectangle below. Write C++ code to test (print the string representation) of the Rectangle object: (upperleftX, upperleftY) = (0, 0), width
Inclement the C++ class Rectangle below. Write C++ code to test (print the string representation) of the Rectangle object: (upperleftX, upperleftY) = (0, 0), width = 6, height = 4, using the clas constructor (upperleftX, upperleftY) = (1, 1), width = height = 5, using the class shift and reset methods #include using namespace std; class Rectangle {public: Rectangle(int x, int y, int w, int h);//Constructor int area();//Aea of a Rectangle object int perimeter();//Perimeter of Rectangle object void shift(int deltaX, int deltaY);//Shift a Rectangle object by (deltaX, deltaY) void reset(int width, int height);//Mutator function void print();//String representation of the Rectangle object private: int upperleftX, upperleftY; int width; int height; Inclement the C++ class Rectangle below. Write C++ code to test (print the string representation) of the Rectangle object: (upperleftX, upperleftY) = (0, 0), width = 6, height = 4, using the clas constructor (upperleftX, upperleftY) = (1, 1), width = height = 5, using the class shift and reset methods #include using namespace std; class Rectangle {public: Rectangle(int x, int y, int w, int h);//Constructor int area();//Aea of a Rectangle object int perimeter();//Perimeter of Rectangle object void shift(int deltaX, int deltaY);//Shift a Rectangle object by (deltaX, deltaY) void reset(int width, int height);//Mutator function void print();//String representation of the Rectangle object private: int upperleftX, upperleftY; int width; int height