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

Why chararray() is preferred over string to store the password?

1066


Can we split string with in java?

1070


How many types of memory areas are allocated by JVM in java?

1115


Which number is denoted by leading zero in java?

1304


Which programming language is best in future?

1022


What is the latest java version?

1114


What is a singleton factory?

1025


How many boolean functions are there?

1011


How do you format in java?

1043


What is difference between next () and nextline () in java?

1039


What is instanceof keyword?

1264


What are the three parts of a lambda expression? What is the type of lambda expression?

1083


Can we convert stringbuffer to string?

1055


Why can't we override private static methods?

1018


What are the advantages of packages in java?

1733