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
How do you define a class and its constructor?
How to validate email in javascript?
What does ecma stand for?
How can we establish connection with java and sql server?
Mention what is the disadvantage of using innerhtml in javascript?
What is spread operator?
Explain what is pop()method in JavaScript?
What is the method for reading and writing a file in javascript?
Why is java better than javascript?
What is purpose of onerror event handler in javascript?
How do I view javascript in chrome?
How do I link an external javascript file to html?
What is NaN in Javascript?
What Is The Disadvantages Using InnerHTML In JavaScript?
Explain “use strict” ?