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
What is use of flutter?
How to create a popup warning box?
How do you reverse a string in javascript?
What are javascript closures?when would you use them?
How do you round a value in javascript?
Is notepad ++ an ide?
What is an onclick?
What can be the challenges during testing a program or a system?
How can JavaScript be used?
What is a function constructor?
Write JavaScript code to use file system in binary format?
What is the difference between the operators '==' and '==='?
Explain arrow functions?
Is dart better than javascript?
What are the different types of errors supported by javascript?