Lesson 21: A classy family tree
Outline:
- Questions?
- Features of object-oriented design
- encapsulation
- polymorphism
- inheritance
- Inheritance
- parent and child classes (aka superclasses and subclasses)
- Exercise 1: exploring
graphics.py - is-a versus has-a
Explore after class:
- 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:
- The readings (see below)
- Work on Assignment 7
Reading assignment (to be completed by the next class):
- Zelle sections 13.5–13.6 (pp. 463–467)