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
Is a method a function?
Is call by reference possible in java?
Is hashmap thread safe?
What is type conversion in java?
How to split a string in java?
Is minecraft java edition free?
Describe the term diamond problem.
What was java originally called?
How many classes can any class inherit java?
What are the differences between processes and threads?
What is a percentage sign called?
What is bufferedwriter?
Can we split string with in java?
How to use Media tracker Class.
what is singleton class in java?