Java Tutorial 62 - Inheritance 1/6 Superclasses and Subclasses

preview_player
Показать описание
In this tutorial, I will show you inheritance. Inheritance allows you to define new classes from existing classes. It allows us to reuse common properties (data fields) and behaviors (methods) by other classes.

Superclasses (General classes) and Subclasses (specialized classes)
- form a is-a relationship.
superclass subclass
parent class child class
base class extended class or derived class
Рекомендации по теме