O'Reilly logo

C++ All-in-One For Dummies, 3rd Edition by John Paul Mueller, Jeff Cogswell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 8

Working with Classes

In This Chapter

arrow Understanding objects and classes and the difference between the two

arrow Becoming familiar with member functions and variables in a class

arrow Making parts of a class public, private, and protected

arrow Using constructors and destructors

arrow 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, whatever that meant. Programming languages were object-oriented. Software applications were object-oriented. Computers were object-oriented. Refrigerators were object-oriented. What did that all mean? Nothing. It was simply a catchphrase that was cool at the time.

Those days are gone, and now we can explore what object-oriented really means and how you can use it to organize your C++ applications. In this chapter, we introduce object-oriented programming and show how you can do it in C++. Although people disagree on the strict definition of object-oriented, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required