Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started