Title: Inheritance More Examples
Course: CPS 161: An Intro to Programming with Java - DL MM MASTER > Section: Learning Units - Bb

Presentations and Videos

- Inheritance More Examples lecture video (Time: 28:00)
- Inheritance More Examples document

- Example: TitledEmployee extends SalariedEmployee
- Example: Squareextends Rectangle - Note the problems that need to be solved with setWidth and setHeight.
- Note that boundingRectangle and intersectingRectangle still get defined as Rectangle even though we may passing Squares.