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 array grow dynamically in java?
why Interface used?
What is method overriding in java ?
What is meant by call by reference?
What are kinds of processors?
What is byte [] in java?
How many types of constructors are used in java?
What is the purpose of return statement?
Is list thread safe in java?
What is the concept of multithreading?
What are the different ways of creating thread?
What is a void in java?
Are arrays dynamic in java?
Can we create an object if a class doesn't have any constructor ( not even the default provided by constructor ) ?
Explain features of interfaces in java?