Inheritance in Java
Creating a new class from existing class is known as inheritance. Inheritance is used to achieve dynamic binding and reusability. The class which is inherited is known as super class or parent class and the class derived from the parent class is known as sub class or child class. Inheritance is implemented using extends keyword. …
