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 solid in oops?
What is the purpose of enum?
What is difference between polymorphism and inheritance?
What is abstraction in oop with example?
What is the diamond problem in inheritance?
What are the three parts of a simple empty class?
Get me a number puzzle game-program
i got a backdoor offer in process global,Bangalore..Can i work with it?
What is the difference between a constructor and a destructor?
What are oops methods?
What is polymorphism what are the different types of polymorphism?
Why it is called runtime polymorphism?
Why we use classes in oop?
What is oops in simple words?
Plese get me a perfect C++ program for railway/airway reservation with all details.