Chapter 10. Classes and Objects

Classes extend the built-in capabilities of C++ to assist you in representing and solving complex, real-world problems.

In this lesson, you will learn

  • What classes and objects are

  • How to define a new class and create objects of that class

  • What member functions and member data are

  • What constructors are and how to use them

Is C++ Object-Oriented?

At one point, C, the predecessor to C++, was the world’s most popular programming language for commercial software development. It was used for creating operating systems (such as the UNIX operating system), for real-time programming (machine, device, and electronics control), and only later began to be used as a language for programming conventional languages. Its intent was to ...

Get Sams Teach Yourself C++ in One Hour a Day, Sixth 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.