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 use of a weakset object in javascript?
What is noscript tag?
What is the difference between remove() and removeChild()?
What are the different objects used in javascripts?
What is a named function in JavaScript? How to define a named function?
What is dom in javascript?
What is the difference between java & javascript?
How to create array in JavaScript?
How to prevent modification of an object in Javascript?
What is a prompt box in javascript?
Why is it called javascript?
Write JavaScript code to use file system in binary format?
What is the similarity between the 1st and 2nd statement?
What does two exclamation marks mean in javascript?
How to remove the event listener?