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
What is the diamond problem in inheritance?
What is difference between abstraction and encapsulation?
any one please tell me the purpose of operator overloading
What is pure oop?
What is abstract class in oop?
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
Why interface is used?
What is the problem with multiple inheritance?
What is protected in oop?
Can we create object of abstract class?
What is abstraction oop?
What is encapsulation and abstraction? How are they implemented in C++?
What are the 4 pillars of oop?
Can bst contain duplicates?
What are oops functions?