Explain polymorphism? What r the types of polymorphism?
pls give examples?

Answers were Sorted based on User's Feedback



Explain polymorphism? What r the types of polymorphism? pls give examples?..

Answer / vikram

Polymorphism literally means taking more than one form or we
can say that one mathod many interface.
there is 2 type of polymarphism 1 :- compail time polimarphism
2: run time polimarphism:

Eax:- function overloding and opertor over loding

Is This Answer Correct ?    23 Yes 4 No

Explain polymorphism? What r the types of polymorphism? pls give examples?..

Answer / 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

Explain polymorphism? What r the types of polymorphism? pls give examples?..

Answer / ajay kanth donkada

Poly as the name states is some thing have more than one
form.
Types are:
Compile Time &
Run time

Example of compile time is Function Overloading/operator
overloading.

Example of Run time: Function overriding.

Is This Answer Correct ?    6 Yes 4 No

Explain polymorphism? What r the types of polymorphism? pls give examples?..

Answer / chethan gowda

its a act which allows entities like function, object, etc can have more than one form.....
2 types 1) complile time
2) runtime

Is This Answer Correct ?    4 Yes 2 No

Post New Answer

More OOPS Interview Questions

What is the real time example of inheritance?

0 Answers  


where is memory for struct allocated? where is memory for class-object allocated? I replied for struct in stack and for class-object in heap. THen he asked if class has struct member variable what happens.class on heap and what about struct in that class? couldnt ans :( :-?

2 Answers   Infosys, Microsoft,


What is an example of genetic polymorphism?

0 Answers  


What is the purpose of polymorphism?

0 Answers  


What is extreme programming?

2 Answers  






why constructor cannt be declar virtually? why destructor cannt be overloaded?

2 Answers   Infosys,


Definition of Object Oriented Programming in single line?

33 Answers   Impact Systems, Q3 Technologies, TCS,


Why is there no multiple inheritance?

0 Answers  


What is sub classing in c++?

1 Answers  


sir plz send me a set of questions that been frequently held in written examination during campus selection.

0 Answers   TCS,


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

0 Answers   CAT,


which feature are not hold visual basic of oop?

0 Answers   Ignou,


Categories