10. Classes and Objects

One of the most fascinating topics in C++ is object orientation. Once you understand it and have written a few programs using the object-oriented-programming (OOP) techniques, it becomes a natural way to program. However, the concepts are subtle and challenging at first.

Object orientation is, above all, a way of approaching analysis and design. There are some helpful tools in C++, but they work only as long as you understand what OOP design is all about.

As I’m going to show in the next six chapters, there are many projects that would be much harder to do without the object-oriented approach.

OOP, My Code Is Showing

Object-oriented programming (OOP) is a modular approach to programming: it creates groups of closely related ...

Get C++ Without Fear: A Beginner’s Guide That Makes You Feel Smart, Third 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.