Question: 26. You are to write a class named Rectangle. You must use separate files for the header (Rectangle h) and implementation (Rectangle.cpp) just like you


26. You are to write a class named Rectangle. You must use separate files for the header (Rectangle h) and implementation (Rectangle.cpp) just like you did for the Distance class lab and Deck/Card program. You have been provided the declaration for a class named Point. Assume this class has been implemented. You are just using this class, NOT implementing it. We have also provided a main function that will use the Point and Rectangle classes along with the output of this main function. You must implement voor Rectanale class such that this main function will compile and output exactly as in the example given. The Rectangle display represents the 4 comer Points of the Rectangle. You may declare any private data members and declare and implement any private helper functions for the Rectangle class. You may not change or add anything to the point class. You must include any libraries you use. main.cpp file #include "Point." #include "Rectangle." #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
