Lesson 18: Getting classy
Outline:
- Questions?
- Recap Lesson 17: Defining our own objects
- example:
MultiSidedDie selfand instance variables__str__method
- example:
- Example:
Mapclass- motivation
- test-driven development—test test test
- supporting a single pair
- extending to multiple pairs
Explore after class:
Mapclass: could you simplify your implementation? Maybe consider aPairclass that you use…
What’s next
Upcoming events/assessments:
- No CS Bits and Bytes this week
- Homework assignment 6 is all about nested loops and image processing and is due Thursday
What you should do now:
- The readings (see below)
- Work on Assignment 6
Reading assignment (to be completed by the next class):
- Zelle sections 12.2–12.5 (pp. 364–390)