Java - What is Multi-level Inheritance?

Опубликовано: 01 Июнь 2021
на канале: Brown Coder
44
8

When a class extends a class, which extends anther class then this is called multilevel inheritance. For example class C extends class B and class B extends class A then this type of inheritance is known as multilevel inheritance.

Timestamps:

00:00 Introduction
00:48 Time To Code
01:11 Grand Parent Class
02:10 Parent Class
02:50 Child Class
03:51 Multi-Level Inheritance
04:32 Code to Execute
05:40 Executing The Code
05:54 Summary

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


На этой странице сайта вы можете посмотреть видео онлайн Java - What is Multi-level Inheritance? длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Brown Coder 01 Июнь 2021, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 44 раз и оно понравилось 8 зрителям. Приятного просмотра!