previous |
start |
next
Coupling
- A class depends on another if it calls one of its
methods
- Purse depends on Coin because it calls
getValue on coins
- Coin does not depend on Purse
- High Coupling = many class dependencies
- Minimize coupling to minimize the impact of interface
changes
previous |
start |
next