Wipro interview question

define and Explain polymorphism in OOP with example.

Interview Answers

Anonymous

18 June 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

Anonymous

10 June 2012

explain the full concept with example.

1

Anonymous

18 June 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: