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

Is react oop?

616


What causes polymorphism?

577


What is purpose of inheritance?

645


write a program to find 2^n+1 ?

1555


write a C++ program for booking using constructor and destructor.

2055






How do you achieve polymorphism?

619


Give an example where we have to specifically use C programming language and C++ programming language cannot be used?

1153


What is debug class?what is trace class? What differences are between them? With examples.

1612


What is the purpose of enum?

585


What are the 4 pillars of oop?

674


write a programe to calculate the simple intrest and compund intrest using by function overlading

1672


What is a class oop?

594


What is the point of oop?

661


How to call a non virtual function in the derived class by using base class pointer

5285


why reinterpret cast is considered dangerous?

1907