C++ has more than one ways to express polymorphism. Discover the nomenclature and read examples on all of them in the following article :
The Four Polymorphisms in C++
by Peteris Krumins
From the article:
(...) These polymorphisms also go by different names in C++ :
- Subtype polymorphism is also known as runtime polymorphism.
- Parametric polymorphism is also known as compile-time polymorphism.
- Ad-hoc polymorphism is also known as overloading.
- Coercion is also known as (implicit or explicit) casting.
Add a Comment
Comments are closed.