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

Is a method a function?

550


Is call by reference possible in java?

536


Is hashmap thread safe?

559


What is type conversion in java?

577


How to split a string in java?

624






Is minecraft java edition free?

578


Describe the term diamond problem.

575


What was java originally called?

508


How many classes can any class inherit java?

507


What are the differences between processes and threads?

518


What is a percentage sign called?

621


What is bufferedwriter?

540


Can we split string with in java?

532


How to use Media tracker Class.

645


what is singleton class in java?

621