Chapter 1
Working with Classes
IN THIS CHAPTER
Understanding objects and classes
Becoming familiar with methods and properties
Making parts of a class public, private, and protected
Using constructors and destructors
Building hierarchies of classes
Back in the early 1990s, the big buzzword in the computer world was object-oriented. For anything to sell, it had to be object-oriented. Programming languages were object-oriented. Software applications were object-oriented. Computers were object-oriented. Unfortunately, object-oriented was simply a cool catchphrase at the time that meant little in real terms. Often, ideas begin poorly formed and gain resolution as people work to implement the idea in the real world.
Now it’s possible to explore what object-oriented really means and how you can use it to organize your C++ applications. In this chapter, you discover object-oriented programming and see how you can do it in C++. Although people disagree on the strict definition of object-oriented, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access