Question: Design and implement a set of classes that define a series of three-dimensional geometric shapes. For each shape, store fundamental data about its size and
Design and implement a set of classes that define a series of three-dimensional geometric shapes. For each shape, store fundamental data about its size and provide methods to access and modify this data. In addition, provide appropriate methods to compute each shapes circumference, area, and volume. In your design, consider how shapes are related and thus where inheritance can be implemented. Create a driver class to instantiate several shapes of differing types and exercise the behavior you provided.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
