The purpose of inheritance (cont'd)
Suppose you are building a program dealing with airships.
All airships have altitude and range parameters in common.
You could build a base Airship class containing information about range and altitude.