Home | Projects | Notes > C++ Programming > Polymorphism

Polymorphism

 

Overview

 

What is Polymorphism?

 

Types of Polymorphism in C++

 

types-of-polymorphism

 

 

Static Binding vs. Dynamic Binding

Example 1

Example 2

 

Using a Base Class Pointer

 

virtual Functions

 

virtual Destructors

 

The override Specifier

 

final Specifier

 

Using Base Class Reference

 

Abstract Classes and Pure virtual Functions

Pure Virtual Function

 

Abstract Classes as Interfaces

V-Table (Virtual Table)

 

mechanism-of-vtable

 

Advantages Polymorphism Has Over Normal Inheritance

 

 

References

Mitropoulos, F. (2022). Beginning C++ Programming - From Beginner to Beyond [Video file]. Retrieved from https://www.udemy.com/course/beginning-c-plus-plus-programming/