What is polymorphism? Explain with an example.

Answer Posted / bapi

polymorphism: It simply define as, ability to take more
than one form.

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?

2762


Can bst contain duplicates?

670


#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

2170


What are different oops concepts?

578


What is destructor give example?

608






Is html an oop?

584


What is the significance of classes in oop?

590


What is cohesion in oop?

624


What is coupling in oops?

598


What is the point of polymorphism?

590


Why interface is used?

555


What are the 3 pillars of oop?

618


What does enum stand for?

617


What is polymorphism explain its types?

688


What are the 3 principles of oop?

619