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 |
Can private class be inherited?
write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory
when to use 'mutable' keyword and when to use 'const cast' in c++
wht is major diff b/w c and c++?
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?
How compiler selects(internally) required overridden function in inheritance?
2 Answers CSC, Infinite Computer Solutions,
#include <string.h> #include <stdio.h> #include <stdlib.h> #include <conio.h> void select(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); select(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void select(char *items, int count) { register int a, b, c; int exchange; char t; for(a = 0; a < count-1; ++a) { exchange = 0; c = a; t = items[ a ]; for(b = a + 1; b < count; ++b) { if(items[ b ] < t) { c = b; t = items[ b ]; exchange = 1; } } if(exchange) { items[ c ] = items[ a ]; items[ a ] = t; } } } design an algorithm for Selection Sort
How to execute business logic for only once ..?even though user clicks submit button multiple times by mistake..? (i disabled JavaScript)
what is the new version of c++
1 Answers Ignou, Pramata, Satyam,
What is the significance of classes in oop?
What is abstraction and encapsulation?
why we call c++ is object oriented lanaguage