Solid Class
Learn to write a class called Solid that calculates area and volume.
We'll cover the following...
Problem
Write a program to create a class called Solid
that can calculate the surface area and volume of a solid. The class should also have a provision to accept the data relevant to the solid.
Sample run
Here’s what you should see when you run the program.
Solid Type: Cylinder
Enter radius and height of cylinder:
3
7
Radius of
...