However, it is essentially a means by which your application can gain access to a class s functionality.
Inheritance is a means to extend a class or reuse the functionality of a class.
Perhaps it needs to be extended or improved. You would need to create a new file, copy the code from the source file and probably rewrite the function from scratch. What a drag. Inheritance allows you to inherit the method from the founding class in your newly defined class. By referencing the super or parent class, you can inherit the functionality you need and then extend the method as you deem fit, or use it as is.