Question: PLEASE PROVIDE THE RIGHT SHAPES Create a class named Point. private attributes x and y of integer type. Create a class named Shape. private attributes:
- PLEASE PROVIDE THE RIGHT SHAPES
- Create a class named Point.
- private attributes x and y of integer type.
- Create a class named Shape.
- private attributes:
- Point points[6]
- int howManyPoints;
- private attributes:
- Create a Main Menu:
- Add a Triangle shape
- Add a Rectangle shape
- Add a Pentagon shape
- Add a Hexagon shape
- Exit
- All class functions should be well defined in the scope of this lab.
- Use operator overloading for the array in Shape class.
Once you ask the points of any shape it will display in the terminal the points added.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
