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 with example?types of polymorphism?

Answer Posted / vignesh,c

poly means many morph means shapes so, one function taking
many shapes ,for ex: take the function name as add,
by passing different sets of arguments it can add 2no.s,3
numbers etc....

there are two types of polymorphism namely,
runtime polymorphism,compile time polymorphism,
compile time Polymorphism means function overloading,
run time polymorphism means virtual functions.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between a method and a function in alice?

1283


What does int argc char * argv [] mean?

1053


What is string length in java?

1003


What happens when main () method is declared as private?

1191


What is jagged array in java?

1159


What are the methods of object class ?

1103


What are the advantages of exception handling?

1120


Is it possible for a yielded thread to get chance for its execution again?

1001


What is the difference between error and an exception?

1237


What are the differences between checked exception and unchecked exception?

1019


When do you get classcastexception?

1079


What are variable arguments or varargs?

1067


How objects of a class are created if no constructor is defined in the class?

1127


Define Multiprogramming and Multiprocessing in java.

1224


What is the use of list in java?

1038