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
How many types of design patterns are there?
Explain what is encapsulation?
What does the “final” keyword mean in front of a variable? A method? A class?
What is widening and narrowing in java? Discuss with an example.
Using callable statement how can you pass out parameters, explain with example?
what are synchronized methods and synchronized statements? : Java thread
Can I override protected method in java?
Explain the difference between transient and volatile in java?
What is the Difference between Final Class && Abstract Class?
What is main in java?
What is the major drawback of internal iteration over external iteration?
What are static initalizers in java ?
Why do we need data serialization?
Can a private method be declared as static?
What is connection class in java?