Inheritance in Java

Inheritance is an object-oriented programming technique. If you need a class similar to previous one with new additional features, java allows you to use the members of the existing class and add some more features to the new class. It is done by inheritance. The class which you derive is super class, base class or parent class. The class which is derived is sub class, derived class, child class. How to create Derived class, Syntax for creating derived class, class sub_class_name extens base_class_name { }…

Continue reading »