previous |
start |
next .... [Slide 13] ....
Coupling
- Minimize dependency: reduce coupling
- Example: Replace
void print() // prints to System.out
with
String getText() // can print anywhere
- Removes dependence on System,
PrintStream
previous |
start |
next .... [Slide 13] ....