Chapter 7. Classes

Until now, the focus of this book has been on functions and how to organize the actions of your programs. It is now time to look at organizing programs around data. Object-oriented programming (OOP) considers data to be more important than actions.

In this chapter, you will learn about

  • Constructing classes with member functions

  • The data access rules for members

  • Overloading method operators

  • Constructors and destructors

  • Separating an interface from an implementation

Get C++ By Example: UnderC Learning Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.