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

What are the 4 pillars of oop?

681


What polymorphism means?

634


What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }

1998


Why is encapsulation used?

587


How can you overcome the diamond problem in inheritance?

780






What is the point of polymorphism?

600


Get me an image implementation program.

1571


What is meant by oops concept?

622


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

1847


What is the full form of oops?

627


Why is static class not inherited?

605


Why do we use oop?

614


What is property in oops?

578


What is polymorphism oop?

637


What is the problem with multiple inheritance?

597