Answer Posted / prabhukalyan dash
Inheritence is the process by which one class can acquired
the proporties of other.and it is used for Reusability i.e
can add more functionality.
Base class is the existing class where as the class which
inherits from the base class is known as Derived class.
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 ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is the use of a boolean object in javascript?
How can javascript language be separated from objects?
What is a javascript symbol?
Can I open javascript on iphone?
How to add/remove properties to object dynamically in javascript?
What is difference between ajax and javascript?
How to trigger a postback on an updatepanel from javascript?
Explain arrow functions?
What is the benefit of arrow functions?
Is there any class in javascript?
What is arguments object in JavaScript?
What are javascript objects?
What javascript means?
What value does prompt() return if the user clicked the cancel button?
What does three dots mean in texting?