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

Inheritance is the process of extending the properties of super class to sub class(methods and variables) if required overriding the properties(methods)
eg...
child having(extended) the Characters(Behavior) of father.

Is This Answer Correct ?    8 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is a char always 1 byte?

939


Why is serialization required?

920


What is a values collection view ?

1038


What are the rules for variable declaration?

914


Does java support function overloading, pointers, structures, unions or linked lists?

1054


Is 64bit faster than 32 bit?

1022


What is the difference between class & object?

956


Give an example of call be reference significance.

988


What is a consumer in java?

972


Can we use string in the switch case?

995


How do you square a number in java?

1011


What are data types in programming?

951


What do you mean by aggregation?

1216


Is char a data type in java?

924


Which variable is the independent variable?

937