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 is the oops and benefits of oops programming?

555


What does enum stand for?

617


program for insertion ,deletion,sorting in double link list

2283


What do you mean by abstraction?

618


What is the main purpose of inheritance law?

671






What is multilevel inheritance in oop?

557


What are classes oop?

598


What is the difference between a mixin and inheritance?

522


What is the importance of oop?

611


What is destructor in oop?

625


What is class in oop with example?

621


Is this job good for future? can do this job post grduate student?

1694


What is polymorphism what is it for and how is it used?

576


What are different oops concepts?

578


What is an advantage of polymorphism?

597