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
What is array command?
What is sortedmap in java?
Explain the available thread states in a high-level?
What is the difference between C++ and Java and your preferences?
What is the difference between Java1.4 and Java1.5
What is the difference between a choice and a list?
In which language java is written?
v-model life cycle
What is the string function?
Where import statement is used in a java program?
Why arraylist is not synchronized in java example?
Can I import same package/class twice?
Which collection is best for sorting in java?
what is the constructor and how many types of constructors are used in java?
What do you understand by the term polymorphism?