Lesson 21: Taking after one's parent
Outline:
- Features of object-oriented design
- encapsulation
- polymorphism
- inheritance
- Recap: inheritance
- parent and child classes (aka superclasses and subclasses)
- Exercise 1: exploring
graphics.py
- Designing classes to schedule activities
- recall:
Activity
class from Lesson 19 - bin packing
- recall:
Explore after class:
- Another bin packing example: Exercise 2
Reading assignment (to be completed by the next class):
- Zelle sec. 12.4-12.5 (pp. 451-456)
- https://en.wikipedia.org/wiki/Bin_packing_problem