1.

If same message is passed to objects of several different classes and all of those can respond in a different way, what is this feature called?(a) Inheritance(b) Overloading(c) Polymorphism(d) OverridingI had been asked this question in an internship interview.My question comes from Polymorphism topic in division OOPs Concept & Features of Object Oriented Programming

Answer»

Correct choice is (c) Polymorphism

Easy explanation - The feature defined in QUESTION defines polymorphism features. Here the DIFFERENT objects are capable of responding to the same MESSAGE in different ways, hence polymorphism.



Discussion

No Comment Found

Related InterviewSolutions