Agenda

  1. Warm-up: Spot the Bug — an attribute set from outside the class
  2. 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
  3. Compare and name it: Encapsulation — why keeping people out is a kindness to your future self, not a locked door
  4. Practise: Methods and Encapsulation Practice

Things to do before our next class