1The extends keyword is used to create a child class of another class (parent).
2The child class inherits all the methods from another class. Inheritance is
3useful for code reusability: reuse properties and methods of an existing class
4when you create a new class.
1The extends keyword is used to create a child class of another class (parent). The child class inherits all the methods from another class. Inheritance is useful for code reusability: reuse properties and methods of an existing class when you create a new class.