What is polymorphism? Explain with an example.
Answers were Sorted based on User's Feedback
Answer / charitha
polymorphism means the ability to take more than one form.
an operation may exhibit different behaviors in different
instances. The behavior depends on the data types used in
the operation.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / srinath varma
The concept of assigning a single name have to more than one function which performs closely related jobs is said to be polymorphism.
Here poly means "many" and morphism means "forms".
The concept of polymorphism consists of two categories
1.Function over loading
2.Operator over loading.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / mr.a
Polymorphism means one object in many forms.
Means a single object work as different-different ways.
we have 2 types of polymorphism.
1. RuntimePolymorphism
2.compiletimePolymorphism.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / m sajjad
Polymorphism means the same function but have different
tasks Basically polymorphism have combination of two words
"poly" and "morphism" poly means many and morphism means forms
i.e
many things or functions are to be done by only one
int is polymorphism
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / vineet
Polymorphism is one of the important feature of OOP's. It
consist of 2 words i.e., 'Poly' which stands for many
and 'Morphism' stands for forms.
polymorphism has concept like function overloading...
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / gelani rahul b
polymorphism means ceate multiple forms. it means single
interface and multiple function are called in polymorphism.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / sumiya yeasmin shorna
ploymorphism is a form of simple name multiple
implementation or method and also polymorphism is a function
overloading.
example:
void myclass();
void ~myclass();
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / farhan asad
polymorphion:
The ability of objects of one type to have one and the same interface, but different implementation of this interface.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / adnan zaman
polymorphism means
one interface to many implementations
overloading & overriding examples of polymorphism
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / radha
olymorphism basicilly provides multiple forms to a single
function or functionality to occure.
| Is This Answer Correct ? | 1 Yes | 1 No |
Why we use classes in oop?
What is the difference between the c++ & java?
Why do pointers exist?
what is the basic concept of inheritance?
How oops is better than procedural?
How to reverse a sentence in c program ex: ram is a good boy answer: boy good a is ram
Why we are use # in begning of programme of c++.
Can you explain polymorphism?
Is data hiding and abstraction same?
What is the oops and benefits of oops programming?
In the following declaration of main, "int main(int argc, char *argv[])", to what does argv[0] usually correspond? 1) The first argument passed into the program 2) The program name 3) You can't define main like that
is java purely oop Language?
49 Answers HCL, Infosys, TCS,