Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Name a typical usage of polymorphism

Answer Posted / brunda r

Polymorphism plays a very important role in allowing objects
having different internal structures to share the same
external interface.Its Its extensively used in implementing
inheritance.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can an interface inherit a class?

1047


What is a function in oop?

1072


What are the benefits of interface?

1036


What are properties in oop?

1072


What is oops with example?

1037


Can bst contain duplicates?

1180


What is purpose of inheritance?

1088


what are the realtime excercises in C++?

2826


Why is polymorphism needed?

1043


What is the benefit of oop?

1038


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

1128


What is abstraction and encapsulation?

1003


What do you mean by Encapsulation?

1079


#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

2528


What is the real time example of encapsulation?

1048