Explain polymorphism? What r the types of polymorphism?
pls give examples?

Answer Posted / vadivel

Right answer is,

Polymorphrism means the "Many forms", is feature that
allows one interface to be used for a general class of
actions. The specifc action is determined by the nature of
the situation.

Two types of polymorphrism, 1. Compile time
(Operator/Functional overloading) [Language 'C' supported
polymorphrism]. 2. Run time (Virtual function).

Example:
//function prototype
int Addition(int iOperand1, int iOperand2);
float Addition(float fOperand1, float fOperand2);
float Addition(int iOperand1, float fOperand2);

Is This Answer Correct ?    17 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the diamond problem in inheritance?

574


What is difference between abstraction and encapsulation?

586


any one please tell me the purpose of operator overloading

1962


What is pure oop?

597


What is abstract class in oop?

526






What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?

2098


Why interface is used?

549


What is the problem with multiple inheritance?

578


What is protected in oop?

598


Can we create object of abstract class?

575


What is abstraction oop?

619


What is encapsulation and abstraction? How are they implemented in C++?

630


What are the 4 pillars of oop?

666


Can bst contain duplicates?

664


What are oops functions?

581