7
Utilizing Dynamic Binding through Polymorphism
This chapter will further extend our knowledge of object-oriented programming in C++. We will begin by introducing a powerful OO concept, polymorphism, and then understand how this idea is implemented in C++ through direct language support. We will implement polymorphism using virtual functions in hierarchies of related classes, and understand how we can achieve runtime binding of a specific derived class method to a more generic, base class operation. We will understand how the OO concept of polymorphism presented in this chapter will support versatile and robust designs and easily extensible code in C++.
In this chapter, we will cover the following main topics:
- Understanding the OO concept ...
Get Deciphering Object-Oriented Programming with C++ 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.