Python · Lesson 12.4 · Pro

Inheritance

Build a specialised class on top of an existing one, and reuse its code.

In this lesson

  1. A class based on another
  2. super(): extend the parent's setup
  3. Override a method
  4. One loop, many kinds