0

What is the use of polymorphism?

19th Sep 2016, 12:20 PM
aman kumar
aman kumar - avatar
2 Answers
+ 1
polymorphism is used to extend common methods to smaller use cases. Dogs are a great example of it. you would have a dog class with all the common dog attributes. then you could extend it with a labrador subclass.
19th Sep 2016, 1:09 PM
Alex Wood
Alex Wood - avatar
0
it means to use a function for more than one purpose. internal structure will be differ with respect to object but the external interface will be same
20th Sep 2016, 5:00 AM
aniket