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’s relationship between javascript and ecmascript?
How to shift and unshift using javascript?
Explain export & import in javascript?
What is the difference between java & javascript?
How to enabled 'Strict' mode in JavaScript?
What is this? Var myarray = [[[]]];
what is the difference between window & document in javascript?
What is local and global scope?
Which built-in method returns the calling string value converted to lower case?
How can you create an Object in JavaScript?
What are the problems associated with using javascript, and are there javascript techniques that you discourage?
What is console.time() and console.timeend()? What is its syntax, and why is it used?
What is the meaning of callback function?
What are trailing whitespace?
How to accessing elements using javascript?