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 data type javascript supports?

1052


What is a hash javascript?

1115


What is rest parameters in javascript?

1171


What is a closure and why are they so useful to us?

1029


What is use of JavaScript and jquery?

1170


Describe the properties of an anonymous function in JavaScript?

1343


Explain how to read and write a file using javascript?

1031


How to get an element by class in javascript ?

1185


What is the difference of "settimeout" function and setinterval functions in javascript

1149


What is a reverse string?

1106


What is an ECMAScript?

1217


What are a fixed-width table and its advantages in javascript?

964


What is difference between local variable and global?

986


How do we get javascript onto a web page?

918


What would you use javascript for?

964