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 function of 'this' operator ?

7 Answers   Wipro,


How many types of access specifier in c# and vb.net?

1 Answers   Infosys,


What is static in oop?

0 Answers  


Why multiple inheritance is not possible?

0 Answers  


How do you explain polymorphism?

0 Answers  






how to find no of instances of an object in .NET?

1 Answers   Infosys,


why to use operator overloading

3 Answers  


What are main features of oop?

0 Answers  


i hav very low percentage in 12th n BSCwhich is around 50.......coz it was just imposed on me 2 b a science graduate,nw m doin MCA n hav aggregate 74% ....what shud i answer if company's HR ask me about dis much low previous percentage??????

3 Answers   Infosys,


what is the need of abstraction? what is abstraction?what is the abstraction for stack?

8 Answers   CTS, Verizon,


What is virtual constructors/destructors?

4 Answers   IBS,


There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.

0 Answers  


Categories