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


Please Help Members By Posting Answers For Below Questions

Explain about narrowing conversion in java?

572


What is the difference between access specifiers and access modifiers in java? 16

548


What is <> used for in java?

679


What are selection structures?

548


What is the difference between compare and compareto in java?

499






Why we use multi threading instead of multiprocessing?

585


How static variable work in java?

612


Which java version is latest?

548


How to use arraylist in java netbeans?

518


When is the finalize() called?

714


What is meant by class and object in java?

565


Why are functions called methods in java?

542


What is gc()?

587


When do we use synchronized blocks and advantages of using synchronized blocks?

673


Write a function to find out longest palindrome in a given string?

601