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
Which is better python or javascript?
What are the predefined functions in javascript?
Write the point of difference between web-garden and a web-farm?
What is the difference between call & apply?
What is nodetype in javascript?
What Is The Disadvantages Using InnerHTML In JavaScript?
Is dart better than javascript?
What do ellipses mean in javascript?
How do I start a javascript project?
Difference between Pure functions Vs. Impure functions in javascript?
What typeof returns for a null value?
Explain export & import in javascript?
How can you convert the string of any base to integer in JavaScript?
What is the difference between a web-garden and a web-farm?
What is javascript used for on iphone?