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

explain the concept of inheritance with an example?

Answer Posted / shekar

Inheritence is the process by which one object acquires the
properties of another object. by using the extends keyword.

Adv:

It is easier to reuse code

Is This Answer Correct ?    40 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is class level lock ?

1034


How to declare an arraylist in java?

1113


Can we sort a map in java?

1044


What is the difference between hashmap and hashtable in java?

1123


What is the difference between jdk, jre, and jvm?

1117


What is the use of pattern in java?

1057


What do you mean by data type?

1021


How can I debug the Java security exceptions and AccessControlExceptions?

1150


What are unchecked exceptions in java?

1038


Why constructor has no return type?

1099


Is a case study a method or methodology?

898


Can two objects have same hashcode?

997


What is string builder in java?

1014


What is mean by exception?

1030


What is type safety in java?

950