Question: From the list above, select 2 shapes and create a class for each shape. Make sure in your class, you provide a way to set

From the list above, select 2 shapes and create a class for each shape. Make sure in your class, you provide a way to set the member variables, which can be done in the constructor or by creating setter functions. Use the main() function to test your code by creating objects/instances for each shape you decide to program. Make sure your main test both DisplayShape and DisplayArea functions.From the list above, select 2 shapes and create a class for each shape. Make sure in your class, you provide a way to set the member variables, which can be done in the constructor or by creating setter functions. Use the main() function to test your code by creating objects/instances for each shape you decide to program. Make sure your main test both DisplayShape and DisplayArea functions.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!