polymorphism means?
Answers were Sorted based on User's Feedback
It is a feature that allows one interface to be used for
general class of actions. The specific action is determined
by the exact nature of the situation. In general
polymorphism means "one interface, multiple methods", This
means that it is possible to design a generic interface to
a group of related activities. This helps reduce complexity
by allowing the same interface to be used to specify a
general class of action. It is the compiler's job to select
the specific action (that is, method) as it applies to each
situation
| Is This Answer Correct ? | 15 Yes | 1 No |
Answer / poorna
polymorphisum means many forms
one object acting on differnt type actions for the our
requiremts
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / sachin
runtime type identification within a class hierarchy
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / parul kataria
Polymorphism is the ability for a message or data to be proceeded in more than one form. ennie
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / sujith
The above answer is well explained. In technical terms it
can be explained as same function name with different
signature. Signature means only interms of arguments, and
not for return types. The idea is very simple and is a
feature which make the end user comfortable, and as Swetcha
said, it is finally the compiler will decide, which function
to call when, according to the type of data passed to the
function.
eg. int add(int, int)
double add(double, double)
char add(char, char)
but the following is not possible
int add(int, int)
char add(int, int)
| Is This Answer Correct ? | 0 Yes | 7 No |
Pls...could any one tell me that whether we can access the public data memeber of a class from another class with in the same program. Awaiting for your response Thanku
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
What is a class and object?
#include <iostream> using namespace std; struct wow { int x; }; int main() { wow a; a.x = 22; int c = a.x; int *b = new int; cout << c; return 0; } option: No output 0 22 -(11) Will not compile
4. What do you mean by a prototype? Define analysis prototype
Can anyone please explain runtime polymorphism with a real time example??at what ciscumstances we go for it??
What is virtual destructor? Why?
3 Answers Agile Software, College School Exams Tests, CSC,
difference between class and object
10 Answers Chandan, IBM, Magic Soft,
Difference ways of Polymorphism?
What is ambiguity in inheritance?
why destructor is not over loaded?