Skip to content

Pitt-0401/0401-polymorphism-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Polymorphism Example

Your task

Take a look at the provided code template and the TODOs.

In App.java:

  1. Create an array of shapes
  2. Describe each shape's properties using pattern matching
  3. Draw each shape

Please add comments where you apply polymorphism and describe your approach!

Bonus: You may adapt the draw methods with nicer shapes / take the measurements into account.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages