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
When a thread is executing synchronized methods , then is it possible to execute other synchronized methods simultaneously by other threads?
Can java program run without jre?
What is the significance of continue jump statement? Explain with an example.
What is method in java with example?
Difference between string, string builder, and string buffer?
When should a function throw an exception?
What does the “final” keyword mean in front of a variable? A method? A class?
What is an enumeration?
What is meant by nested loop?
Difference between start() and run() method of thread class?
Can we override tostring method in java?
Can we use return in constructor?
How long will it take to learn java?
How does arraylist size increase in java?
What is the size of arraylist in java?