C++ Polymorphism
Polymorphism is one of crucial and important features of OOP. It simply means “one name and multiple forms”.
The term “Polymorphism” is the combination of “poly” + “morphs” which means many forms. It is a greek word.
In C++ polymorphism is of two types
(i). Compile time polymorphism
(ii). Run time polymorphism
Compile time polymorphism if further divided in two types
(i). Function Overloading/Function polymorphism
(ii). Operator Overloading/Operator polymorphism
Run time polymorphism is of one type
(i). Virtual functions