Skip to content

design and implement a class hierarchy for representing different shapes. You will demonstrate your understanding of derived classes, method overriding, and the use of polymorphism to achieve code flexibility and extensibility.

Notifications You must be signed in to change notification settings

RoddyCodes/W8D3-Object-Oriented-Programming---Part-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

W8D3-Object-Oriented-Programming---Part-2

design and implement a class hierarchy for representing different shapes. You will demonstrate your understanding of derived classes, method overriding, and the use of polymorphism to achieve code flexibility and extensibility.

  1. classes offered are:
  • shape
  • circle
  • triangle
  • rectangle
  1. methods include:
  • get color
  • set color
  • calculate area
  • calculate perimeter
  1. main program insutrctions:
  • ensure all code files in same directory
  • open terminal, nav to directory containing files
  • run python main.py

made by ryan pham

About

design and implement a class hierarchy for representing different shapes. You will demonstrate your understanding of derived classes, method overriding, and the use of polymorphism to achieve code flexibility and extensibility.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages