To practice using inheritance, please take the time to complete the following exercise.
Create a tile price calculator that calculates the price of a floor composed of multiple shapes. The user must be able to:
The user should be able to perform these operations in any order, any number of times. Rooms can be composed of compound shapes of the following types:
Each shape should inherit from a base Shape class. The shape class should have a getArea() function, which returns a double, and a toString() function which returns details about the shape in question in the following form: "ShapeName[instanceVariable1:value, instanceVariable2:value, ...]".
Hint: Your main function should hold a list of shapes.