Question: You are to develop a complete JAVA program to contain three classes: Design and implement a class that represents a CUBOID. Design and implement a
You are to develop a complete JAVA program to contain three classes:
Design and implement a class that represents a CUBOID. Design and implement a class that represents a CUBE that inherits from class CUBOID.
Design and implement a class that maintains a list of CUBOIDs and CUBES then apply the following operation on the list: Fill the list manually with different objects from the keyboard.
Compute and display the average volume for all cubes and cuboids. display the object with max volume. display the object with min volume sort the list in ascending order.
Display the list on the screen.
Note:
The classes should contain the followings:
At least one constructor.
a destructor.
setters and getters.
a ToString() operator.
read and write/display a set of operators that applies to CUBES and CUBOIDS such as ( volume, surface area, sides area, base area)
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
