Week9 Plan
Note: each lecture and recitation plan is just a guideline
at first. Plans are only finalized after that day's
lectures or recitations are completed.
Lecture (Tue 27-Oct):
- Quiz8
- Content Review: OOP
Recitation (Wed 28-Oct):
Lecture (Thu 29-Oct):
- More Lecture-Guided Exercises
- Extra Topics
- dunder (magic) methods
- __add__ (make instances work with +)
- __lt__ (make instances sortable)
- data validation with @property
- eg: enforce that (0 <= age <= 120)