Question: Can u help to solve it using JAVA Consider solid figures, namely, Cylinder and Rectangular Prism. Each one of them has a height. A Cylinder
Can u help to solve it using JAVA


Consider solid figures, namely, Cylinder and Rectangular Prism. Each one of them has a height. A Cylinder has a base that is a circle with radius. A Rectangular Prism has a base that is a rectangle with length and width. Using polymorphism, design the necessary interface(s), abstract class(es), and/or concrete class(es) that implement the family of solid figures and offer the necessary method(s) to allow comparing any two solid figures to check if they have the same volume. Enforce as much Information Hiding as possible. (Hint: volume height *Base Area; Circle Area-pi * radius'; Rectangle Area -length* width). Implement your design using Java programing language. Furthermore, write four test cases to validate your program. You have to follow the program construction techniques such as formatting, indentation, variable names etc
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
