Java - What is Inheritance?

Veröffentlicht am: 19 Mai 2021
auf dem Kanal: Brown Coder
76
17

Inheritance is an important pillar of OOP(Object-Oriented Programming).
It is the mechanism in java by which one class is allowed to inherit the
features (properties and methods) of another class.

Timestamps:

00:00 Introduction
00:30 Important Terminologies
02:03 Super Class/Parent Class
02:18 Sub Class / Child Class
03:27 Understanding Inheritance

Super Class
The class whose features are inherited is known as superclass
(or a base class or a parent class).


Sub Class
The class that inherits the other class is known as a subclass (or
a derived class, extended class, or child class). The subclass can add its own
properties and methods in addition to the superclass properties and methods.


Reusability
Inheritance supports the concept of “reusability”, i.e. when we
want to create a new class and there is already a class that includes some of
the code that we want, we can derive our new class from the existing class.
By doing this, we are reusing the fields and methods of the existing class.

Support us:
Like Share Subscribe


Auf dieser Seite können Sie das Online-Video Java - What is Inheritance? mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Brown Coder 19 Mai 2021 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 76 Mal angesehen und es wurde von 17 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!