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 / sandeep

It is reacting differently for the same kind of message.

For example,

Consider Parrot,Penguin & tiger

My message is "approach me quickly"

Their different reactions:

Parrot approaches me by " flying"
Penguin approaches me by "swimming"
Tiger approaches me by "running"

Here my message is simply "pproach me quickly"
But different things have been reacted differently.

This is called Polymorphism.

As far as my knowledge is concerned there is only one type
of polymorphism and that is runtime polymorphism.

Is This Answer Correct ?    69 Yes 88 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are strings immutable in java?

918


Can we create more than one object singleton class?

986


Which language is java?

912


What is oops in java?

954


How do you make an arraylist empty in java?

885


What is the most important feature of java? What is an interface?

948


Can we split string with in java?

947


Explain runtime exceptions?

1105


What is assembly condition codes?

933


How are variables stored in memory?

996


Is an array a vector?

958


Can you start a thread twice in Java?

1059


How to instantiate static nested classes in java?

1008


Is a boolean 1 bit?

1003


What is extension method in java?

983