Create and use a collection of classes to specify a number of three-dimensional geometric forms. Keep basic information about each shape's dimensions in a database and make the information accessible and modifiable. Additionally, give suitable formulas for calculating the volume, area, and circumference of each shape. Think about the relationships between shapes in your design and where inheritance can be used. Create a driver class to execute the supplied behaviour on a variety of shapes of various sorts.
Create and use a collection of classes to specify a number of three-dimensional geometric forms. Keep basic information about each shape's dimensions in a
Create and use a collection of classes to specify a number of three-dimensional geometric forms. Keep basic information about each shape's dimensions in a database and make the information accessible and modifiable. Additionally, give suitable formulas for calculating the volume, area, and circumference of each shape. Think about the relationships between shapes in your design and where inheritance can be used. Create a driver class to execute the supplied behaviour on a variety of shapes of various sorts.
Step by step
Solved in 4 steps with 1 images