what is the difference between polymorphism and inheritance | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

what is the difference between polymorphism and inheritance

21st Aug 2016, 8:02 PM
Pete yiese
Pete yiese - avatar
3 Answers
+ 1
inheritance is that you can use the base class functions or characteristics in derived class by inheriting. Similarly Polymorphism is making a base class pointer and use it for functions of derived class mostly of same names.
21st Aug 2016, 8:11 PM
Zeeshan
+ 1
polymorphism- means flexibility. inheritance. - means Reusability
24th Aug 2016, 2:32 AM
Sarath chalapaka
Sarath chalapaka - avatar
0
Why are you even asking on here? This is for programming .-.
9th Sep 2016, 6:57 PM
SapphireWolf