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

what is inheritence

Answer Posted / rajeshwar

Inheritance is an object oriented concept using which one
can inherit the features of one class to another and add
additional functionallity. This simply reuses the existing
functionallity.

If there is a class A and Class B then class B can inherit
the features of Class A as shown below

Class B extends A
{
// you will get all functions or variables from A
except private variables.

// apart from existing functions you can add new functions

}

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is use of flutter?

859


How to create a popup warning box?

933


How do you reverse a string in javascript?

846


What are javascript closures?when would you use them?

886


How do you round a value in javascript?

876


Is notepad ++ an ide?

839


What is an onclick?

866


What can be the challenges during testing a program or a system?

2164


How can JavaScript be used?

903


What is a function constructor?

854


Write JavaScript code to use file system in binary format?

2482


What is the difference between the operators '==' and '==='?

946


Explain arrow functions?

892


Is dart better than javascript?

854


What are the different types of errors supported by javascript?

1063