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 the role of a strict mode in javascript?

519


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

533


What is the purpose of using javascript?

498


How to get the type of arguments passed to a function?

525


What does undefined value mean in javascript?

574






Is array a data type in javascript?

458


If we want to return the character from a specific index which method is used?

620


Why is javascript used for web pages?

429


What are the pop-up boxes available in javascript?

492


What does parse Query String return in javascript?

517


How about 3+5+"8"?

563


Explain what is javascript? List some data types supported by javascript?

465


just for testing

1745


What are escape characters in javascript?

493


What is data type in javascript?

458