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 |
What is polymorphism ? Explain with examples
can you give the dynamic polymorphism types?
I hv a same function name,arguments in both base class and dervied class, but the return type is different. Can we call this as a function overloading? Explain?
What is the difference between inheritance and polymorphism?
What is the difference between static polymorphism and dynamic polymorphism?
What is command routing in MFC
what is difference between objects and function
What is Hashing and how is it done? Pictorial form?
what is use to destroy an object? illustrate.
Write an operator overloading program to Overload ‘>’ operator so as to find greater among two instances of the class.
What is operator overloading? Give Example
11 Answers CTS, IBM, TCS,
Write a program to find out the number of palindromes in a sentence.