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 |
WAP to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
Why static functions always uses static variables?
What is the difference between const int *ptr and int const *ptr???
what is a binary overloading
Write an operator overloading program to write S3+=S2.
How does polymorphism work?
hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.
How Do you Code Composition and Aggregation in C++ ?
What is the importance of oop?
why we call c++ is object oriented lanaguage
Can a destructor be called directly?
Why do we use encapsulation in oops?