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
Why set is used in java?
How many types of equations are there?
what do you understand by synchronization? Or what is synchronization and why is it important? Or describe synchronization in respect to multithreading? Or what is synchronization? : Java thread
What do you understand by java?
Can you give names of Container classes?
What is the use of accept () method in java?
What is the difference between assignment and initialization?
What are the features in java?
What is the abstraction?
Why string is not a wrapper class?
What are the procedures?
What is early binding and late binding in java?
What is java thread dump, how can we get java thread dump of a program?
What is the purpose of the file class in java programming?
How can you write a loop indefinitely in java programming?