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...

What is polymorphism? Explain with an example.

Answer Posted / lakshmi tulasi

poly means many and morph means faces. means shoeing many faces.

same function or same operator will show/give perform different tasks by passing different arguments.

examples: function overloading
function overriding

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of oops?

1066


Why we use classes in oop?

1045


What are the benefits of polymorphism?

1278


How Do you Code Composition and Aggregation in C++ ?

25476


Why do we need oop?

1204


which feature are not hold visual basic of oop?

2195


What is the advantage of oop over procedural language?

1090


#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

2627


What are the two different types of polymorphism?

1145


Why is encapsulation used?

994


What is polymorphism explain its types?

1167


What is the real time example of encapsulation?

1070


What are the three main types of variables?

1130


What are the benefits of interface?

1061


Can bst contain duplicates?

1196