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

How do you define a class and its constructor?

1034


How to validate email in javascript?

1060


What does ecma stand for?

895


How can we establish connection with java and sql server?

2272


Mention what is the disadvantage of using innerhtml in javascript?

1046


What is spread operator?

930


Explain what is pop()method in JavaScript?

1287


What is the method for reading and writing a file in javascript?

1012


Why is java better than javascript?

976


What is purpose of onerror event handler in javascript?

976


How do I view javascript in chrome?

916


How do I link an external javascript file to html?

962


What is NaN in Javascript?

1102


What Is The Disadvantages Using InnerHTML In JavaScript?

1058


Explain “use strict” ?

985