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

can any one tell me when do u go for inheritance and
polymorphism

Answer Posted / kishor kommulas

Inheritance:::

If you want to make use of the functionality of the method,
which is already there then you can go for the inheritance.

Polymorphism::::

If you want to use the same method name for different
method,then you can go for Polymorphism.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an image buffer?

944


How you can force the garbage collection?

937


Where we write javascript code in html page?

1005


How to change the priority of thread or how to set priority of thread?

988


What is null data type?

1018


What are the different approaches to implement a function to generate a random number?

1007


How do you represent a space in regex java?

964


How does varargs work in java?

1047


what is daemon thread and which method is used to create the daemon thread? : Java thread

912


How do you differentiate abstract class from interface?

922


What is concurrent hashmap and its features?

1028


Can we sort set in java?

918


How do I convert a numeric ip address like 192.18.97.39 into a hostname like java.sun.com?

972


How do you override a method?

966


How many wrapper classes are there in java?

973