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

Advantages of Inheritance in java.

Answer Posted / kureshi salman

Inheritance means deriving a child class from a parent class
(i.e.existing class).
Use of inheritance iin java is we can reuse of a code.
For Ex.
class a
{
//variables.....
//methods.......
}
class b extends a
{
//variable of class a....
//methods of class a.....
//also
//variables and methods of class b
}
it means that we can inherit the class and features of
existing class in a new class.

Is This Answer Correct ?    29 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between exception and error in java?

1065


What are Normalization Rules? Define Normalization?

1112


What is a local, member and a class variable?

1090


What is immutable in java?

1125


Can the garbage collection be forced by any means?

1045


What are sets in java?

1001


Can a constructor call the constructor of parent class?

1084


What the difference is between execute, execute Query, execute Update?

886


Why are global variables used?

1072


Where local and global variables are stored?

1126


Can an object subclass another object?

1174


Are arrays immutable in java?

1148


When is the finally clause of a try-catch-finally statement executed?

1137


How do you end a program?

1182


what is the difference between future and callable interface in java?

1315