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

How many ways can we create singleton class?

915


What is a dot notation?

958


I want to re-reach and use an object once it has been garbage collected. How it's possible?

954


What is bubble sorting in java?

993


Difference between Linked list and Queue?

978


What are different data types?

959


Write a program in java to find the maximum and minimum value node from a circular linked list.

1006


How do I enable java in safari?

980


What is the difference between superclass and subclass?

1084


What do you mean by pointer value and address?

999


What are "methods" and "fields"?

970


Which number is denoted by leading zero in java?

1193


What is replaceall in java?

971


Write a program to print the pattern given below

886


How to run a JAR file through command prompt?

1208