Java4teachus

Tuesday, June 25, 2019

Define Inheritance Types Of Inheritance In Java

Inheritance

Introduction

Inheritance is one of the main features of OOPS and makes it is development reusable.

Definition

The processes of obtaining data members & methods (features) from one class to another class is called inheritance. (or)  The process of deriving the one class features into another class is called as inheritance.

Super Class and Base Class

The class which is giving the data members & methods is called "Base class / super  class/ parent class". where the class is taking data members & methods is called as “Derived class /  Child class”.

Inheritance concept always follows logical memory management. This management is base class features are available in derived class without taking any physical and without taking physical code (in the content of we can just reuse the features of base class).

inheritance-in-java.jpeg
Inheritance concept is also known as re-usability (or) extended class (or) derivation (or) sub class.

Advantages / Benefits  Of  Inheritance 

If we develop any Java application in inheritance concept we get the following advantages. 
  1. Application memory space is less. 
  2. Application development time is less. 
  3. Application execution time is less. 
  4. Application performance is improved. 
  5. Redundancy of code is minimized. 
  6. Able to get the slogan of Java.
Types of  Inheritance (or) Re-Usability Techniques

A pattern or model which makes as to understand how to inherit the feature from the base class to derived class is class inheritance type or reusable techniques.
Types-Of-Inheritanc-In-Java.jpeg
 They are five types of inheritance they are
1)      Single inheritance.
2)      Multi level inheritance.
3)      Hierarchical inheritance.
4)      Multiple inheritance.
5)      Hybrid inheritance.

No comments:

Post a Comment

Thanks for visiting my site..