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 data type javascript supports?
What is a hash javascript?
What is rest parameters in javascript?
What is a closure and why are they so useful to us?
What is use of JavaScript and jquery?
Describe the properties of an anonymous function in JavaScript?
Explain how to read and write a file using javascript?
How to get an element by class in javascript ?
What is the difference of "settimeout" function and setinterval functions in javascript
What is a reverse string?
What is an ECMAScript?
What are a fixed-width table and its advantages in javascript?
What is difference between local variable and global?
How do we get javascript onto a web page?
What would you use javascript for?