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
What is the role of a strict mode in javascript?
What is a closure and why are they so useful to us?
What is the purpose of using javascript?
How to get the type of arguments passed to a function?
What does undefined value mean in javascript?
Is array a data type in javascript?
If we want to return the character from a specific index which method is used?
Why is javascript used for web pages?
What are the pop-up boxes available in javascript?
What does parse Query String return in javascript?
How about 3+5+"8"?
Explain what is javascript? List some data types supported by javascript?
just for testing
What are escape characters in javascript?
What is data type in javascript?