Inheritance
Introduction
Use
How to use inheritance in your applications
- You can use inheritance in your applications to create generic superclasses that implement common elements of related subclasses.
- It's also common to create classes that inherit from classes that are defined by the Java API.
- When you inherit a class, you can use the subclass whenever an instance of the superclass is called for.