What is Polymorphism?
Poly means many and morph means forms or shape. Thus the word Polymorphism comes from Greek and it basically means having many forms.
For example,
Your DAD is your father. He’s your mom’s Husband. He’s your grandma’s son as well. Thus here your DAD is exhibiting many forms. He’s a father, son, husband, brother, etc.
In C++, polymorphism can be divided into two types:
- Compile-time Polymorphism
- Run-time Polymorphism
Difference Between Compile Time And Run Time Polymorphism In C++
In this article, we will discuss the differences between the compile-time and runtime polymorphism in C++.
Contact Us