9. Object-Oriented Principles
Overview
This chapter presents best practices for designing classes and will give you an overview of abstraction and encapsulation, where to use them, and how they can benefit your custom C++ types. More details about classes in general and how they fit into the object-oriented programming paradigm will also be covered.
Introduction
The previous chapter provided detailed information on the construction of objects along with information on the different keywords that C++ provides to define these objects. We learned that we must be careful when creating our own types and ensure that they are constructed and destroyed appropriately. This chapter delves further into object-oriented programming, explaining important ...
Get The C++ Workshop 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.