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 Agile methodology?
20 Answers ABC, Accenture, College School Exams Tests, Inmar, Microsoft, Sapient,
Which language is not a true object oriented programming language?
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 class and example?
Is enum a class?
What is virtual class and friend class?
What is difference between #define and const?
Which is the parameter that is added to every non-static member function when it is called?
WHAT IS ABSTRUCT DATA TYPE ? PLEASE EXPLAIN IT.
What does no cap mean?
Program to check whether a word starts with a capital letter or not.
write a progra in c++ using class & object to find out wheather a given no. is prim or not.