Programming with Class(es)

In This Chapter

  • The four object-oriented programming principles
  • How a class object works
  • Public versus private accessibility
  • How to derive child classes
  • Ways to embed classes
  • Adding attributes to a class at runtime

Back in the early days of programming, we had what was commonly referred to as linear programming. That is, a program started at the top, ended at the bottom, and followed all of the steps along the way, only detouring for conditions and exceptional events. In other words, all programs out there looked a lot like the little program snippets you’ve been writing in this book.

However, when you write ...

Get Beginning Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.