In Java, it is possible to inherit attributes and methods from one class to another. Inheritance can be defined as the process where one class acquires the properties (methods and fields) of another. Inheritance is an important pillar of OOP(Object Oriented Programming). In the terminology of Java, a class which is inherited is called a parent or superclass, and the new class is called child or subclass. Java Inheritance: The process by which one class acquires the properties( instance variables) and functionalities of another class is called inheritance. In Java, it is possible to inherit attributes and methods from one class to another.
Only Logged in users can post reply.