Lesson 21: Taking after one's parent

Outline:

  1. Features of object-oriented design
    • encapsulation
    • polymorphism
    • inheritance
  2. Recap: inheritance
    • parent and child classes (aka superclasses and subclasses)
    • Exercise 1: exploring graphics.py
  3. Designing classes to schedule activities
    • recall: Activity class from Lesson 19
    • bin packing

Explore after class:

  1. Another bin packing example: Exercise 2

Reading assignment (to be completed by the next class):