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
Explain about narrowing conversion in java?
What is the difference between access specifiers and access modifiers in java? 16
What is <> used for in java?
What are selection structures?
What is the difference between compare and compareto in java?
Why we use multi threading instead of multiprocessing?
How static variable work in java?
Which java version is latest?
How to use arraylist in java netbeans?
When is the finalize() called?
What is meant by class and object in java?
Why are functions called methods in java?
What is gc()?
When do we use synchronized blocks and advantages of using synchronized blocks?
Write a function to find out longest palindrome in a given string?