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

Please tell me the oops concept with detailed answer

9 Answers   EEE,


given a set based questions and 5 questions based on it next data sufficiciency questions 2 and 2/3 english sentence completion with options very easy and 2 synononmys paragraph with 10 questions 10 minutes replace =,-,*,% with -,%,+,* type questions 5 3 questions lik following itssickhere itssickthere itssickhere istsickhere which is nt alike the others very easy

0 Answers   DELL,


Why and when is a virtual destructor needed?

5 Answers  


What is virtual destructor? Why?

3 Answers   Agile Software, College School Exams Tests, CSC,


What is persistence in oop?

0 Answers  






How oops is better than procedural?

0 Answers  


how do u initialize the constant variables

5 Answers   IBM, Siemens,


Why multiple inheritance is not possible?

0 Answers  


what is the drawback of classical methods in oops?

0 Answers  


Polymorphism with an example?

8 Answers   Accenture, emc2,


what is multithreading in c++ , what is difference between multithreading and singlethreading.

4 Answers  


Explain the concepts involved in Object Oriented programming.

0 Answers   Wipro,


Categories