/Area_and_Volume-in-Java

Write a Java program with objects to calculate the area and volume of rectangles/ squares/ cubes, cuboids, cylinders, and spheres

Primary LanguageJava

java

Write a Java program with objects to calculate the area and volume of rectangles/ squares/ cubes, cuboids, cylinders, and spheres

You have to set a variable to introduce the shape
You should have parameters to set dimensions
Finally, add methods to do the calculations
Try to re-use methods and minimize coding