Question: IN C++ (DIVIDE IN FILES: MAIN.CPP, POINT.H, POINT.CPP, SHAPE.H, SHAPE.CPP) USE SWITCH AND CASE FOR MAIN 1.Create a class named Point. private attributes x and
IN C++ (DIVIDE IN FILES: MAIN.CPP, POINT.H, POINT.CPP, SHAPE.H, SHAPE.CPP)
USE SWITCH AND CASE FOR MAIN
1.Create a class named Point.
- private attributes x and y of integer type.
2.Create a class named Shape.
private attributes:
- Point points[6]
- int howManyPoints;
3.Create a Main Menu:
- Add a Triangle shape
- Add a Rectangle shape
- Add a Pentagon shape
- Add a Hexagon shape
- Exit
4.All class functions should be well defined in the scope of this lab.
5.Use operator overloading for the array in Shape class.
6.Use operatator overloading of cin and cout.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
