What is encapsulation?
Package data & related behaviour together into 1 self-contained unit
Information hiding Data in an object hidden from outside world, only accessible through interface
Package data & related behaviour together into 1 self-contained unit
Information hiding Data in an object hidden from outside world, only accessible through interface