Question: Create a java project using constructors, setters, and getters for Cone, Torus, and Sphere. Cone will ask the elements and calculate the volume or surface
Create a java project using constructors, setters, and getters for Cone, Torus, and Sphere.
Cone will ask the elements and calculate the volume or surface area.
Torus will ask the elements and calculate the volume or surface area.
Sphere will ask the elements and calculate the volume or surface area.
The function for obtaining the volume should be of type "Cone" for the cone class, type "Torus" for the torus class, and type "Sphere" for the sphere class.
The function for obtaining the surface area should be of type "Cone" for the cone class, type "Torus" for the torus class, and type "Sphere" for the sphere class.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
