what is polymorphism?

Answer Posted / haseena banu

Polymorphism is not the same as method overloading or method overriding. Polymorphism is only concerned with the application of specific implementations to an interface or a more generic base class. Method overloading refers to methods that have the same name but different signatures inside the same class. Method overriding is where a subclass replaces the implementation of one or more of its parent's methods. Neither method overloading nor method overriding are by themselves implementations of polymorphism

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is abstraction used?

599


What do you mean by variable?

567


What is pure oop?

587


What are objects in oop?

602


What is overloading in oops?

591






What does it mean when someone says I oop?

574


What are the 3 principles of oop?

608


#include #include #include #include void insert(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); insert(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void insert(char *items, int count) { register int a, b; char t; for(a=1; a < count; ++a) { t = items[a]; for(b=a-1; (b >= 0) && (t < items[b]); b--) items[b+1] = items[b]; items[b+1] = t; } } design an algorithm for Insertion Sort

2157


Give two or more real cenario of virtual function and vertual object

1849


What do you mean by Encapsulation?

634


Why is static class not inherited?

590


What is the difference between static polymorphism and dynamic polymorphism?

573


What is the highest level of cohesion?

566


What is use of overloading?

602


How to use CMutex, CSemaphore in VC++ MFC

4323