what is polymorphism with example?types of polymorphism?

Answer Posted / ramaiah.teepalapudi

polymorphism is the phenomenon where the same message sent
to two different objects produces two different set of
actions. Polymorphism is broadly divided into two parts:



Static polymorphism – exhibited by overloaded functions.
Dynamic polymorphism – exhibited by using late binding.

Is This Answer Correct ?    29 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does @override mean?

533


What happens if we don’t define serial version uid?

572


What is the difference between overriding and overloading in OOPS.

565


What is the static field modifier?

598


Explain about fail safe iterators in java?

568






When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?

545


Is java 9 released?

526


Can we use switch statement with strings?

622


What is variable in java?

525


What is the difference between static (class) method and instance method?

572


Define how destructors are defined in java?

588


Can we extend singleton class in java?

545


Explain about transient variables in java?

644


Where are variables stored?

552


What are three advantages of using functions?

538