Extending (Class Hierarchy)
Extends in java “extends” a class. The class created is inherited from another class, but more methods can be written in addition to the methods already in the original class. A subclass is the class that inherits, while the superclass is the class being inherited from.