Storing Objects Of Your Own Classes in a Vector
makes the Rectangle class that includes the constructor, mutator, and accessor. (The definition of them is your choice) and save it in a separate header
file. (.h)
Then, in your main program, make an instance of vector (from STL) and then initialize that vector with three Rectangle objects. (objects from your own
class that you saved in a separate file.) Then, by calling area and per member functions(which you already defined in your own Rectangle class),
calculate the area and perimeter of each rectangle object and print them.
Note: The submission is one header (.h) file and one C++ source file.
Storing Objects Of Your Own Classes in a Vector
makes the Rectangle class that includes the constructor, mutator, and accessor. (The definition of them is your choice) and save it in a separate header
file.(.h)
Then, in your main program, make an instance of vector (from STL) and then initialize that vector with three Rectangle objects. (objects from your own
class that you saved in a separate file.) Then, by calling area and per member functions(which you already defined in your own Rectangle class)
calculate the area and perimeter of each rectangle object and print them
Note:The submission is one header(.h) file and one C++ source file