Part III
Advanced Topics
Part II mainly dealt with the obvious aspects of object-oriented programming, as you might know from Java or other languages. However, virtuality, inheritance, and even classes and methods are not the only way to achieve extensibility, encapsulation, and polymorphism. Arguably, you can also program in an object-oriented way in C if you put in the effort.
This part does not discuss whether other ways lead to object orientation, but it shows you possibilities beyond what has been discussed so far to design your programs and use other tools of the C++ language. You can omit elements of classical object-oriented programming and replace them with other means, achieving similar results while enjoying certain advantages.
I’ll start ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access