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 / prabhukalyan dash

Inheritence is the process by which one class can acquired
the proporties of other.and it is used for Reusability i.e
can add more functionality.

Base class is the existing class where as the class which
inherits from the base class is known as Derived class.

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 ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is new keyword in javascript?

819


What is javascript hoisting?

895


Explain export & import in javascript?

985


What is data types in javascript?

960


Is javascript necessary for web development?

917


What is javascript tree shaking?

936


Should I learn java first or javascript?

911


What is variable typing?

956


How to capture the Image width and height using QTP script ? Kindly answer plz.... Thanx in adavance...

3974


Should I disable javascript?

883


How to get an element by class in javascript ?

999


how to hide alphabets in java as password '*'

2065


java pgm for reads a file(text file) and removes all the spaces then the text and write this back into the same file. e.g: (Input) _______ chennai is fourth biggest city in india. (output) _______ chennaiisfourthbiggestcityinindia.

1932


Can you have a function within a function in javascript?

831


How can a value be appended to an array?

893