An object can acquire the properties and behaviour of another object using Inheritance. The extends keyword extends a class (indicates that a class is inherited from another class). In Java, it is possible to inherit attributes and methods from one class to another. So basically, extends keyword is used to extend the functionality of the class.
コメント