Question d’entretien chez Wipro

define and Explain polymorphism in OOP with example.

Réponses aux questions d'entretien

Utilisateur anonyme

18 juin 2012

i.Polymorphism means the ability to take more than one form. ii.The behavior depends upon the types of data used in the operation. iii.Polymorphism plays an important role in allowing objects having different internal structures to share the same external interface.

1

Utilisateur anonyme

10 juin 2012

explain the full concept with example.

1

Utilisateur anonyme

18 juin 2012

This ability of different objects to respond, each in its own way, to identical messages is called polymorphism. Polymorphism results from the fact that every class lives in its own name space. The names assigned within a class definition won't conflict with names assigned anywhere outside it. This is true both of the instance variables in an object's data structure and of the object's methods: