what is polymorpsim? what are its types?
Answers were Sorted based on User's Feedback
Answer / a
Polymorphism means more than one form.Polymorphism is the
concept to use a function or a operator in more than one
form.Polymorphism in c++ is applied through the concept of
Function overloading,Operator overloading and via virtual
function.
| Is This Answer Correct ? | 21 Yes | 2 No |
Answer / niranjan ambati
By using "virtual" keyword infront of "implementation
methods" declarations in the class, polymorphisim can be
achieved. late binding(run time execution)
,Encapsulation(APIs), avoid ambiguity between multi
inheritance can be achieved thru polymorphisim.. Using
polymorphisim, the objects will call correct methods at run
time by using virtual pointer table.
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / sudha
polymorphism is having more than one form.
Types of polymorphism are Run-time and compile-time
polymorphism
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / varsha agrawal
polymorphism means "poly" means 'one' and "morphism" means
'forms'. so we can say that polymorphism means one name
which has multiple forms.
ex:-blood group.
polymorphism are two types:
1) Static polymorphism: this is taken place in compile time.
2) Dynamic polymorphism: this is taken place in compile time.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / yuvi
polymorpsim is the form of operation and function. you can
use polymorpsim in your programing langauge
the simple difnation for polymorpsim is one entity can
exist diffrent type of form.
| Is This Answer Correct ? | 4 Yes | 4 No |
Answer / sandhya.v
when a base class has to be changed with some minor or
major changes, it can be done through two methods . The
first method is using the keyword "new" and the second
method is by using "Override",The concept of using this is
called of olymorphism , The types are ad hoc polymorphism
and parametrized polymorphism..
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / maahi
polymorphism is an oops concept,it meanse the ability to
take more than one form.polymorphism allows different object
ti respond to the same message in diffent ways.
there are two
types of polymorphism.
1.compile time
2.run time
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / jaimin patel
polymorpsim is the greek term ,it is the ability to take more than one form.as example one operation may exhibit different behaviour in diffrance time.
| Is This Answer Correct ? | 0 Yes | 0 No |
Which is the best institute in hyderabad for C/C++ and it also has fast track course structure.
what is code for call by value and call by reference?
What's the full form of STL?
difference between abstraction and encapsulation with progarammatic eg. hi,just recently i went for an interview .The interviewer asked what is the difference between abstraction and encapsulation with programmatic eg. I gave the answer as encapsulation mean hiding the relevant data which is not useful for the user, eg a electric fan .hiding the information how the electricity is converted into machanical energy. abtraction showing only the relevant data to the user eg electric fan. it look ,its color ,it design etc only relevant data. Then the interviewer asked me, give me some programmic eg .I Said Let assume a web form having control like textbox,button etc. The user can view textbox,button etc this is the eg of abstraction and when the user click on the button how he is redirected is not known by the user is the eg of the encapsulation. Am I Correct .was the answer given by me is perfect .now i am planing to go for an another interview should i give the same answer.IF not please suggest me a better answer.with some good eg Please help
I hv a same function name,arguments in both base class and dervied class, but the return type is different. Can we call this as a function overloading? Explain?
What is abstraction in oop with example?
What is the significance of classes in oop?
can you give real time example for polymarphism
What are virtual functions?
What are the access specifiers avaible in c++?
A file pointer always contains the __________ of the file
difference between class and object
10 Answers Chandan, IBM, Magic Soft,