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 oops and benefits of oops programming?
What does enum stand for?
program for insertion ,deletion,sorting in double link list
What do you mean by abstraction?
What is the main purpose of inheritance law?
What is multilevel inheritance in oop?
What are classes oop?
What is the difference between a mixin and inheritance?
What is the importance of oop?
What is destructor in oop?
What is class in oop with example?
Is this job good for future? can do this job post grduate student?
What is polymorphism what is it for and how is it used?
What are different oops concepts?
What is an advantage of polymorphism?