previous | start | next

## Relationships between Classes

- When designing a program, it is useful to document the relationships between classes.
  - For classes with common behavior, you can save effort by placing the common behavior in a base class.
  - For classes that are not related to each other, you can assign different programers to implement each of them.
- The inheritance relationship is a very important relationship between classes.
- The relationship is often described as the is-a relationship.
  - Every truck is a vehicle.
  - Every savings account is a bank account.

previous | start | next