What is encapsulation?

  1. Package data & related behaviour together into 1 self-contained unit

  2. Information hiding Data in an object hidden from outside world, only accessible through interface