Use Java Inheritance to create a series of related classes with a “Shape” theme.
Navigate to the installation directory from within your terminal.
Use javac to compile.
> javac Main.java
> java Main
Shapes - Java Inheritance Edition
1.) Construct a Circle
2.) Construct a Rectangle
3.) Construct a Square
4.) Construct a Triangle
5.) Construct a Sphere
6.) Construct a Cube
7.) Construct a Cone
8.) Construct a Cylinder
9.) Construct a Torus
10.) Exit
Please make a selection from the menu above (e.g. 1):
> 1
What is the radius?:
> 3
The area of the circle is: 28.27
Would you like to continue? (Y/N):
> N
Thanks for using my program! Today's date and time is: Sun Jan 15 22:21:20 PST 2023
MIT © Joseph Julian