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

Can we override main method?

607


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

2051


What is encapsulation in oops?

536


What is purpose of inheritance?

645


Plese get me a perfect C++ program for railway/airway reservation with all details.

3429






What is class and object with example?

585


What is the real time example of inheritance?

641


explain sub-type and sub class? atleast u have differ it into 4 points?

1834


What is polymorphism in oop example?

515


What is polymorphism in oops?

558


What is the difference between encapsulation and polymorphism?

596


IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?

1581


Whats oop mean?

595


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.

1788


what is graphics

2011