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
Explain what is javascript? List some data types supported by javascript?
How will you explain closures in javascript? When are they used?
What's the difference methods get and post in html forms?
What is the use of type of operator?
What are the javascript data types?
Can you put javascript in html?
How do functions work in javascript?
What is are the types of the pop up box es available in javascript?
How to create function in JavaScript?
Is javascript server side or client side?
List few difference between primitive and non primitive javascript data types?
How compare function works javascript?
What is node value?
what difference between args.length and args.length() in command line argument?
How to detect the OS on the client machine in JavaScript?