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 the difference between a method and a procedure?

1126


Why char array is preferred over string for storing password?

1154


What is the final method?

1122


Does java vector allow null?

1008


What restrictions are placed on method overriding?

1244


How do you compare two objects?

989


What is the use of conditional statement?

1034


What does the ‘static’ keyword mean? Is it possible to override private or static method in java?

1036


What is difference between next () and nextline () in java?

1046


What is meant by polymorphism?

1077


What are different ways of object creation in java ?

1153


What is an exception in java?

1158


Difference difference paint() and paintcomponent()?

1052


Can we create an object of private class?

1024


What are the main uses of java?

1034