What is polymorphism? Explain with an example.

Answer Posted / gelani rahul b

polymorphism means ceate multiple forms. it means single
interface and multiple function are called in polymorphism.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

class type to basic type conversion

1843


What does and I oop mean in text?

625


What is destructor give example?

608


Can bst contain duplicates?

674


What is oops and why we use oops?

573






If a=5, b=6, c=7, b+=a%c*2. What is the final value of b?

944


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

1837


What is inheritance write a program to show use of inheritance?

617


What exactly is polymorphism?

612


write a C++ program for booking using constructor and destructor.

2055


What is encapsulation c#?

602


What are the components of marker interface?

606


what is the drawback of classical methods in oops?

2922


How do you define social class?

603


#include #include #include #include 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

2070