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 are the OOPS concepts?
106 Answers A1 Technology, Bajaj, CTS, EDS, HP, Infosys, Intel, Microsoft, MNC, Persistent, PlanetSoft, ProConstructor, TCS, Virtusa, Wipro, YSoft Solutions,
Which language is not a true object oriented programming language?
What is late bound function call and early bound function call? Differentiate.
Which is not an object oriented programming language?
Why is encapsulation used?
A file pointer always contains the __________ of the file
What are the four main oops concepts?
What is meant by multiple inheritance?
just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.
how to find the largest of given numbers in an array
Write A Program using Single and Multiple Inheritance.
What is static modifier?