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 are different oops concepts?

579


Can main method override?

587


Explain the concepts involved in Object Oriented programming.

644


What are oops methods?

568


Whats is abstraction in oops?

593






What do you mean by overloading?

586


How to call a non virtual function in the derived class by using base class pointer

5281


What polymorphism means?

624


How is class defined?

588


What language is oop?

598


what is difference between class template and template class?

2161


How Do you Code Composition and Aggregation in C++ ?

24205


What is oops and its features?

592


What is the important feature of inheritance?

637


write a program that takes input in digits and display the result in words from 1 to 1000

1994