The purpose of inheritance (cont'd)

From this base Airship class, you might derive two classes:

The Balloon class might add parameters dealing with passenger capacity and what makes it go up (helium, hydrogen, or hot air).

The Balloon class would then be able to deal with altitude, range, passenger capacity, and what makes it go up.