previous | start | next

## Coupling

- A class depends on another class if one of its member functions uses an object of the other class in some way.
- The "collaborators" column of the CRC cards tells you which classes depend on another.
- In a UML class diagram, you denote dependency by a dashed line with an open arrow tip that points to the dependent class.

- A `Purse` class depends on a `Coin` class, because a purse contains coins.
- The `Coin` class does not depend on the `Purse` class because the `Coin` class makes no use of the `Purse` class.

previous | start | next