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
Are there any predefined constant provided by the browser with the key code values that can be reused?
How to convert numbers to strings using javascript?
To write messages to the screen without using "document.write()"?
What are javascript functions?
What are types of javascript?
How to have an element invoke a javascript on selection, instead of going to a new url?
If you need to hide the javascript code from the older browser versions, how will you perform it?
What javascript method would convert the string “20” to an integer (on the fly) so “20” + 20 = 40?
What is scope variable in javascript?
What is the concept of “functions as objects” and how does this affect variable scope?
How to convert json string to object?
How to remove the event listener?
Explain what is pop()method in JavaScript?
What is difference between api and library?
Can I write javascript in notepad?