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
can we make game by using c
What do you mean by abstraction?
What is a class oop?
Why oops is important?
What is destructor example?
Why is polymorphism used?
Can we have inheritance without polymorphism?
What is abstraction and encapsulation?
write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.
Can static class have constructor?
Is abstract thinking intelligence?
What is difference between polymorphism and inheritance?
What are the advantages of polymorphism?
What do you mean by variable?
What does <> mean pseudocode?