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

to remove the repeated numbers from the given . i.e.., if the input is 12233 output should of 123

2 Answers  


What is encapsulation oop?

0 Answers  


In the following declaration of main, "int main(int argc, char *argv[])", to what does argv[0] usually correspond? 1) The first argument passed into the program 2) The program name 3) You can't define main like that

6 Answers  


What is a friend function & its advantage?

1 Answers   MIT,


What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?

0 Answers   IBM,


what is opps?why it is use in programming language?

2 Answers   Wipro,


what is difference between objects and function

1 Answers  


Why is oop useful?

0 Answers  


What is oops?what is its use in software engineering?

0 Answers  


What is polymorphism programming?

0 Answers  


#include <iostream> using namespace std; struct wow { int x; }; int main() { wow a; a.x = 22; int c = a.x; int *b = new int; cout << c; return 0; } option: No output 0 22 -(11) Will not compile

1 Answers   CTS, Wipro,


What is polymorphism and its types?

0 Answers  


Categories