Introduction to OOP: Chapter 9: Mechanisms for Software Reuse [next] [previous] [audio] [real] [text]

Inheritance

Inheritance is useful when the new software component has all the behavior of the existing component, plus more.

Rule of thumb - if the sentence ``new-thing is-a old-thing'' sounds reasonable, then inheritance can be used.

Intro OOP, Chapter 9, Slide 5