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

Inheritance: The base class properties into subclass class
is called inheritance.
Inheritance example:Father and child relation. Father
having 10 lakhs property. That property is always avilable
to child. Father is a parent class. child is a subclass.
Advantage: 1.subclasss take the all properties from parent
class.
2.suppose you can add any property in parent class. That
will be effected to subclasses also.

Is This Answer Correct ?    22 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Implement 2 stacks with just 1 array. The stack routines must not indicate overflow unless every slot in array is used.

1368


Can keyword be used as identifier?

1015


What is the ==?

942


What is ‘is-a ‘ relationship in java?

1111


What is abstract class constructor called?

1074


What is the function of java?

1052


What is the use of optional ?

1085


What is the use of list in java?

1031


What is java object name?

1047


How many techniques can be employed to create a string object?

1165


What is difference between static and final?

1122


If a class is declared without any access modifiers, where may the class be accessed in java programming?

1291


What does %4d mean in java?

1536


What’s a deadlock?

1146


What are the basic control structures?

1034