What is polymorphism? Explain with an example.
Answers were Sorted based on User's Feedback
Answer / nitish
Polymorphism stand of the simple combination of 2words, i.e
Poly+morphism i.e many+form of. these belongs to various
formats. But their basic reason remains the same in the
functioning.
| Is This Answer Correct ? | 12 Yes | 3 No |
Answer / prabhati
polymorphism allows the usage of same operators or functions
in different ways. eg: 7+3 is used for addition
"poly"+"morphism" is used for
concatenating these two words
types of polymorphism:
virtual functions
operator overloading
function overloading
| Is This Answer Correct ? | 10 Yes | 3 No |
Answer / shilpa
It is a inportant cocept of oops and using these concept we
can work with different function of same name. That is we
can create a single fonction which can perform many task.
| Is This Answer Correct ? | 11 Yes | 4 No |
Answer / swathi
It is a feature that allows one interface to be used for
general class of actions. The specific action is determined
by the exact nature of the situation. In general
polymorphism means "one interface, multiple methods", This
means that it is possible to design a generic interface to
a group of related activities. This helps reduce complexity
by allowing the same interface to be used to specify a
general class of action. It is the compiler's job to select
the specific action (that is, method) as it applies to each
situation
| Is This Answer Correct ? | 10 Yes | 3 No |
Answer / ujjawal ranjan
Polymorphism is a characteristics of OOPS(Object Oriented Programming Language) through which method/function for any class of objects can be called by the same name and each responses according to their type-specific behavior .
The main benefit of polymorphism is that it simplifies the programming interface. It permits conventions to be established that can be reused in class after class.
Instead of inventing a new name for each new function you add to a program the same names can be reused.
It helps in understanding an interface.
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / santosh mohapatra
Polymorphism is a Greeck word which can be divided into 2
sub word i.e., poly stands for many and morphism stands for
forms. It is one of the essential feature of OOP's. This
feature is mainly used for the member functions of a class.
THe polymorphism is used to overload a function in a same
memory location i.e. the reusability of a function with
different parameters.
| Is This Answer Correct ? | 7 Yes | 3 No |
Answer / lakshmi tulasi
poly means many and morph means faces. means shoeing many faces.
same function or same operator will show/give perform different tasks by passing different arguments.
examples: function overloading
function overriding
| Is This Answer Correct ? | 6 Yes | 2 No |
Answer / naren
Polymorphism means ability to take more than one form.
There are two types of polymorphism
1.Method Overloading(compile time polymorphism)
2.Method Overriding(run-time polymorphism)
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / jasbir kaur
polymorphism is the ability to take more than one form
| Is This Answer Correct ? | 5 Yes | 1 No |
What is class and object in oops?
What are benefits of oop?
what is new operator in c++
What is the renewal class?
What is an advantage of polymorphism?
WAP find square root of any number (without using sqrt() )?
What are the types of abstraction?
Is abstract thinking intelligence?
Which is faster post increment or pre increment ? and in which cases should u use either - to increase speed?
What are the important components of cohesion?
What is stream in oop?
What is differance between Abstract and Interface