what are Parametric and Inclusion polymorphism in C++
-
31-10-2019 - |
Question
I am reading some C++ text at the address https://cs.senecac.on.ca/~chris.szalwinski/archives/btp200.082/content/adhoc.html.
In the section UNIVERSAL POLYMORPHISM
, the author mentioned about Parametric
and Inclusion
polymorphisms. I am not quite sure that I understand the point, especially why Parametric
polymorphism is implemented at compile time while Inclusion
polymorphism is implemented at run time?
Can anyone give me a clear explanation or an example, please?
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow