Java Reference
In-Depth Information
5.
The output from this program is shown here:
6.
Many other types of classes can be derived from
Vehicle
. For example, the following
skeleton creates an off-road class that stores the ground clearance of the vehicle.