what is polymorphism?
Answers were Sorted based on User's Feedback
Answer / priyanka chourasia
Two or more function of same name but different defination is
called as Polymorphism.
| Is This Answer Correct ? | 13 Yes | 1 No |
Answer / rohit jindal
One thing having different work in Different situation.Eg:
Operator overloading,Function overloading
| Is This Answer Correct ? | 8 Yes | 1 No |
Answer / sangita patel
Polymorphism means one name multiple form.
It is implemented using overloaded function and operators.
Its is of two types
1) compile time polymorphism(function overloding
2) run time ploymorphism
| Is This Answer Correct ? | 7 Yes | 1 No |
Answer / kananatha kowsik.r
Polymorphism is a greek word.'Poly' means many.'Morphism'
means programs.'Polymorphism' many programs.That means by
calling many forms or many programs using one interface.By
using polymorphism we can achieve overloading and overriding.
Types of polymorphism.
1.Compile time polymorphism or late bind polymorphism
2.Run time polymorphism or early bind polymorphism or
dynamic polymorphism.
1.Compile time polymorphism:
The polymorphism which is created at compile time or
late bind is called compile time polymorphism.
Example: Function overloading, Operator overloading.
2.Runt time polymorphism:
The polymorphism which is created at run time or late
bind or dynamically is called run time polymorphism.
Example: Abstract class, Virtual function.
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / jithin s
It means The Ability to take more than one form....ie the
same function name can be used to perform diffrent tasks...
depending up on the number and type of the argument and
also the function return type..
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / prasath
polymorphism is defined as one operator or function used in more than one work. it is called polymorphism.
ex:
OPERATOR OVERLOADING
2+3=5
1.2+2.3=3.5
"HA"+"I"="HAI"
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / kanchana
polymorphism means giving same name to differt functions
.but it signature will be different
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / vigneswari
USE SINGLE OPERATOR FOR MANY OPERATINS OR
FUNCTIONS..........POLY-MANY,MORPHISM-SHAPES.....
BEST OF LUK.... ROCK ALL COMPUTER ENGINEERS
| Is This Answer Correct ? | 0 Yes | 0 No |
What are inline functions?
What is the use of structure in c++?
Define the process of error-handling in case of constructor failure?
What is a memory leak c++?
Write a program which is required to process the time of a clock in hours and minutes, entered from the keyboard. With this program, there are two requirements for any data entered by a user: 1. The data must be of the correct type (in this case, two ints). 2. The data must be in the correct range: this means that, for the minutes, negative numbers and any number above 59 must be rejected; for the hours, negative numbers and any number above 23 must be rejected. Output error message for invalid data input. Output the time one and a half hour after the time input. i.e. Hour: 22 Min: 32 One and a half hour after 22:32 is 00:02
What is the difference between Pointer and a Reference? When you would use them?
List the issue that the auto_ptr object handles?
What are the characteristics of friend functions?
Explain stack & heap objects?
If you want to share several functions or variables in several files maitaining the consistency how would you share it?
Explain the concept of friend function in c++?
What is runtime errors c++?