A Simple Class

Everything Public

Everything Public

Everything Public

Everything Public

Information Hiding

  • Protect state from unwanted changes
  • Control access to variables and methods
  • Use accessor methods
  • All state changes are controlled by the class

Accessor Methods

Static

Static