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 |
Write a program to find out the number of palindromes in a sentence.
What is the difference between pass by value,pass by pointer,pass by reference in the catch block in the exception handling in c++
why the argument is passed by reference to a copy constructor?example?
WRITE A SIMPLE C++ PROGRAM TO SWAP TWO NOS WITHOUT USING TEMP
How can we use the preprocessor #if and #elseif.
Whatis the difference between oop and object based language
can you explain how to use JavaBean in Project
What is the real time example of inheritance?
What is an object?
WHEN A COPY CONSTER IS CALL ?
What is difference between oop and pop?
What is coupling in oop?