Quantcast
Channel: polymorphism
Viewing all articles
Browse latest Browse all 7

polymorphism

$
0
0
Hello!

i have a question in understanding the principle of polymorphism.

is it polymorphism if the metode in a base class is virtual and "overriden" in a derived class? So if it wasent for virtual it wouldn't be polymorphism. If there wasn't a virtual method in the program it would only be inheritance and not inheritance with polymorphism?

thank you, have a nice day and!


Viewing all articles
Browse latest Browse all 7

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>