Lesson 21: A classy family tree

Outline:

  1. Questions?
  2. Features of object-oriented design
    • encapsulation
    • polymorphism
    • inheritance
  3. Inheritance
    • parent and child classes (aka superclasses and subclasses)
    • Exercise 1: exploring graphics.py
    • is-a versus has-a

Explore after class:

  1. Reading code with inheritance

What’s next

Upcoming events/assessments:

  • CS Bits and Bytes Thursday at 3:30pm in Anderson 329: Meditech
  • Homework assignment 7 is all about classes and dictionaries and due this Thursday
  • Quiz #4 will be on Friday (in Olin 149)

What you should do now:

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

  • Zelle sections 13.5–13.6 (pp. 463–467)