Explain the concept of polymorphism with examples?

Answer Posted / babul mog

Polymorphism: polymorphism means the same interface for multiple purposes,basically it is base class pointer which can access derive class members.
It has two types:
1. compile time polymorphisum: function overloading,function overriding.
2. runtime polymorphism : virtual function.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many types of design patterns are there?

522


Explain what is encapsulation?

596


What does the “final” keyword mean in front of a variable? A method? A class?

540


What is widening and narrowing in java? Discuss with an example.

552


Using callable statement how can you pass out parameters, explain with example?

576






what are synchronized methods and synchronized statements? : Java thread

571


Can I override protected method in java?

587


Explain the difference between transient and volatile in java?

569


What is the Difference between Final Class && Abstract Class?

611


What is main in java?

502


What is the major drawback of internal iteration over external iteration?

579


What are static initalizers in java ?

570


Why do we need data serialization?

536


Can a private method be declared as static?

571


What is connection class in java?

501