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

What are the two types of streams offered by java 8?

925


What restrictions are placed on method overloading in java programming?

1051


What is sorting in java?

987


Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?

1161


Is array size fixed in java?

975


Detail discussions on JVM, memory management and garbage collector.

985


Where is stringbuffer stored?

985


Which package is imported by default?

1082


What is meant by null and void?

969


Explain the selection sort algorithm?

1058


Why volatile is used in java?

1067


What are the differences between this and super keyword?

946


what is the final keyword denotes in java?

1090


How we can run a jar file through command prompt in java?

970


What does a method signature consist of?

984