Next: Specify Interfaces
Up: Specify Dependencies
Previous: Programmed-in relationship
Decrementing dependencies inside a class helps to code, test and maintain
the code. You can use the following ideas to minimalize to specify clear
relationships inside a class:
- Define class invariants
- Use assertations
- Use preconditions and postconditions for mamber functions
- Increase encapsulation
Porkoláb Zoltán
2001-09-03