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 Java Package and which package is imported by default?

1148


Explain the Propertie sof class?

1105


What is the use of bufferedreader?

1045


Is there is any difference between a scrollbar and a scrollpane?

1038


What is hasnext in java?

1061


What is the purpose of abstract class?

1057


Explain serialization and deserialization in java?

1038


What is a double?

1153


What are the application of stack?

982


How java uses the string and stringbuffer classes?

1121


What is assembly condition codes?

1037


What is a 16 bit word?

1068


Is it possible to override private or static method in java?

1037


What environment variables are required to be set on a machine in order to run Java programs?

1272


What is substring in java?

1295