What is polymorphism? Explain with an example.

Answer Posted / santosh wavare

Polymorphism is one of the important feature of OOP's. It
consist of 2 words i.e., 'Poly' which stands for many
and 'Morphism' stands for forms.

We can divide the polymorphism into 2 types.
1. Static polymorphism
2. Dynamic polymorphism

Static polymorphism:- In this the binding is taken place in
compile time. The different types of static polymorphism
are:-
a) Function Overloading
b) Operator Overloading

Dynamic polymorphism:- In this the binding that takes place
at run-time. The difference types of dynamic polymorphism
are:-
a) Virtual function
b) Abstract class

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the drawback of classical methods in oops?

2920


How to hide the base class functionality in Inheritance?

640


What is the difference between static polymorphism and dynamic polymorphism?

587


What is abstraction in oop?

637


Advantage and disadvantage of routing in telecom sector

790






write a C++ program for booking using constructor and destructor.

2053


What is encapsulation in simple terms?

541


What is encapsulation oop?

578


If a=5, b=6, c=7, b+=a%c*2. What is the final value of b?

944


Why interface is used?

555


Why do we need oop?

671


What is meant by multiple inheritance?

740


What is an advantage of polymorphism?

597


What is polymorphism explain?

693


What is encapsulation c#?

601