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
Can an arraylist be empty?
What is the use of default method in interface in java?
What are abstract methods in java?
What all methods are used to prevent thread execution ?
What is the use of coding?
What’s the difference between the methods sleep() and wait()?
What are voids?
Is null an object in java?
Why java does not support pointers?
How does thread synchronization occurs inside a monitor?
In java, how many ways you can take input from the console?
What are benefits of java?
What is an enumeration?
What is the covariant return type?
What is difference between Heap and Stack Memory?