Inheritance in Java is a mechanism in which a class acquires the properties (attributes and methods) of another Java class. With the use of inheritance, data and information are managed in a well organized and structured hierarchical order.
The class that inherits the properties of another class is called a subclass (derived class or daughter class) and the class whose properties are inherited is called superclass (base class, parent class, parent class ...).
Declaring a subclass is done using the Extends keyword
Extends is the keyword used to inherit properties from a class.
System Informations Tools :
- Operating System : Windows 7, Windows 8, Windows 10 32 bit & 64 bit
- Memory : 4 GB
- CPU : Intel core i5
- Graphic card : Nvidia
- Computer Hrdware : Acer