10. Advanced Object-Oriented Principles
Overview
This chapter presents a number of advanced object-oriented principles, including inheritance and polymorphism, which will allow us to build more complex, dynamic, and powerful C++ applications. You will create new objects by inheriting functionality from base classes, implement virtual functions and abstract classes, use polymorphism to create versatile code, cast safely between types, and build a complex application using advanced OOP principles.
Introduction
Throughout Chapter 8, Classes and Structs and Chapter 9, Object-Oriented Principles we covered object-oriented principles in C++. We started by looking at classes and structs, creating our own user-defined objects to encapsulate our ...
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.