what is polymorphism?

Answer Posted / navieen

Polymorphism means the ability of a single variable of a
given type to be used to reference objects of
different types, and automatically call the method that is
specific to the type of object the variable references.
The benefit of polymorphism is that it is very easy to add
new classes of derived objects without breaking the calling
code that uses the polymorphic classes or interfaces.
When you send a message to an object even though you
don’t know what specific type it is, and the right thing
happens, that’s called polymorphism. The process used by
object-oriented programming languages to implement
polymorphism is called dynamic binding.

Is This Answer Correct ?    10 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is array sorting in java?

660


Can a class be final?

582


What is the final blank variable?

683


What is the difference between sop and work instruction?

579


Which number is denoted by leading zero in java?

905






how to open and edit XML file in Weblogic???

1658


What is the use of set in java?

712


What are the different types of data structures in java?

583


What is java volatile?

634


What is sizeof () operator?

645


Is 0 a prime number?

659


Explain naming conventions for packages?

669


What is hashing in java?

670


What is oops in java?

665


Which access specifier can be used with class ?

616