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 forms in your design and where inheritance may be used. Create a driver class to execute the supplied behaviour on a variety of shapes of various sorts.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter11: Advanced Inheritance Concepts
Section: Chapter Questions
Problem 3PE
icon
Related questions
Question

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 forms in your design and where inheritance may be used. Create a driver class to execute the supplied behaviour on a variety of shapes of various sorts.

Expert Solution
steps

Step by step

Solved in 5 steps with 1 images

Blurred answer
Knowledge Booster
Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT