8000 GitHub - jbjulia/shapes: Use Java Inheritance to create a series of related classes with a “Shape” theme.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

jbjulia/shapes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Shapes - CMSC 335 Project 1

Use Java Inheritance to create a series of related classes with a “Shape” theme.

Compiling

Navigate to the installation directory from within your terminal.

Use javac to compile.

> javac Main.java

Usage

> 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

License

MIT © Joseph Julian

About

Use Java Inheritance to create a series of related classes with a “Shape” theme.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0