Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Why Object Oriented Programming?

  • Better encapsulation of intent.
  • Integration between data and functionality (attributes and methods)
  • Better modelling for some part of the world.
  • Another level of code-reuse.
  • Clearer separation between "usage" and "implementation". (Private data in some cases)
  • Clearer connection between "classes" of things.
  • In reality: avoid using "global".