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 |
ambiguity regulation of multiple inheritance with example.
Is react oop?
You attempt to query the data base with this command: SELECT name, salary FROM employee WHERE salary=(SELECT salary FROM employee WHERE last name='Wagner' OR dept no=233) Choose most appropriate option from the following: 1)Sub-queries are not allowed in the where clause. 2)a multiple row sub-query used with a single row comparison operator. 3)a single row query is used with a multiple row comparison operator.
what is polymorpsim? what are its types?
What is the renewal class?
what is inline function?
What is multidimensional array?
why destructor is not over loaded?
I am DeePu sotware engineer working with EMC corporation ,recently I had attended mcafee interview . Their questions were at heights of stupidity , I don't know what they want , I am a developer with 4 year experienced .I am listing the questions asked 1:What is the flag in g++ to avoid structure padding 2:In wht order parameters are passed to stack 3:How you will edit code segment of an exe
what is the difference between a package and a software?
all about pointers
What is polymorphism what is it for and how is it used?