0

What is the difference between inheritance and polymorphism?

4th Dec 2016, 4:51 AM
RaVVan
RaVVan - avatar
2 Answers
0
inheritance means a class can have a base class and all of its properties and have the power to override them, and polymprphism was used to change the base class properties or functions to act as the deriven class
4th Dec 2016, 4:55 AM
Dwiki Nurkurniawan
Dwiki Nurkurniawan - avatar
0
In basic human language, inheritance means transferring some block of information to another while polymorphism means declaring two different block of code but give them same name.
4th Dec 2016, 5:30 AM
Akshay Khandizod
Akshay Khandizod - avatar