What is polymorphism ? Explain with examples

Answer Posted / khushpreet kaur.

Polymorphism is taken from the greek word which means "many
forms"...
So polymorphism means "to carry out operations of
different processing steps by function having same
messages".
when a base class member function can be overridden by
defining a derived class member function with same name as
that of the base class member function,then such type of
concept is called "Polymorphism".(one interface multiple
methods)
polymorphism is of two types- compile time(early or static
binding) and run time(dynamic or late binding)..
in comlite time is of two types-function overloading and
operator overloading.
in run time is of two types-virtual function and pure
virtual function..

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is class in oop with example?

608


Prepare me a program for the animation of train

1982


What do you mean by Encapsulation?

635


What are different oops concepts?

566


Why interface is used?

547






Write a program to sort the number with different sorts in one program ??

1910


What is interface in oop?

656


What is the difference between abstraction and polymorphism?

606


Why is abstraction needed?

560


can we make game by using c

3409


Why do we need oop?

656


Why is polymorphism important in oop?

627


Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.

1777


What is coupling in oops?

589


What is the problem with multiple inheritance?

578