Agenda
- Warm-up: Spot the Bug — an attribute set from outside the class
- The impossible object: a loan with negative days, a mark of 140, a booking for nobody — each one set from a different part of the file
- Compare and name it: Encapsulation — why keeping people out is a kindness to your future self, not a locked door
- Practise: Methods and Encapsulation Practice
Things to do before our next class
- Finish Methods and Encapsulation Practice.
- Journal: one rule your object must never be allowed to break, and the single place you now enforce it.