What is polymorphism? Explain with an example.

Answer Posted / santosh

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 ?    272 Yes 22 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you overcome the diamond problem in inheritance?

768


What are the advantages of polymorphism?

577


What are objects in oop?

610


What makes a language oop?

598


What is interface? When and where is it used?

1664






What do you mean by variable?

577


What type of loop is a for loop?

682


What is polymorphism give a real life example?

561


What are oops methods?

568


How is class defined?

588


How to hide the base class functionality in Inheritance?

638


What is polymorphism oop?

623


What are the 4 pillars of oop?

672


What is abstraction in oop?

632


What are the features of oop?

640