Example & Tutorial understanding programming in easy ways.

What are the types of polymorphism in C++ ?

Polymorphism:

Polymorphism means multiple forms. It means having more than one function with the same function name but with different functionalities.


Polymorphism are of two types:

1.Compile time polymorphism.

2. Run time polymorphism.


1. Compile time polymorphism:

- Also called as static binding.

- Function overloading is the example of compile time polymorphism.


2. Run time polymorphism:

- Also called as dynamic binding.

- Function overriding is the example of run time polymorphism.


Read More →