Chapter 10. OBJECTS AND CLASSES
In this chapter you learn
How to define and implement a class
Public and private class access
Class data members
Class methods (class function members)
Creating and using class objects
The this pointer
Creating arrays of objects
Object-oriented programming (OOP) is a particular conceptual approach to designing programs, and C++ has enhanced C with features that ease the way to applying that approach. The most important OOP features are these:
Abstraction
Encapsulation and data hiding
Polymorphism
Inheritance
Reusable code
The class is the single most important C++ enhancement ...
Get C++ Primer Plus, Fourth 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.