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 new keyword in javascript?
What is javascript hoisting?
Explain export & import in javascript?
What is data types in javascript?
Is javascript necessary for web development?
What is javascript tree shaking?
Should I learn java first or javascript?
What is variable typing?
How to capture the Image width and height using QTP script ? Kindly answer plz.... Thanx in adavance...
Should I disable javascript?
How to get an element by class in javascript ?
how to hide alphabets in java as password '*'
java pgm for reads a file(text file) and removes all the spaces then the text and write this back into the same file. e.g: (Input) _______ chennai is fourth biggest city in india. (output) _______ chennaiisfourthbiggestcityinindia.
Can you have a function within a function in javascript?
How can a value be appended to an array?