Skip to content

Hodge-zf/shape

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 

Repository files navigation

Randy Hodge

JALC Spring 2017

Inheritance lab - Two-Dimensional Shapes

Goals

  • Write 5 instantiable classes: Circle, Ellipse, Rectangle, Square, RightTriangle
  • Each will inherit from a proper chain of parent classes until you reach the Super, TwoDimensionalShape
  • Each class will compute area and perimeter/circumference via proper inheritance
  • Provide a readable toString method detailing properties
  • Provide an equals method to compare area value of two shapes
  • Write a driver that demonstrates use of polymorphism by comparing object instances.
    • At least once of each instantiable class

Releases

No releases published

Packages

No packages published

Languages