next up previous
Next: Specify Dependencies Up: C++ Design Issues Previous: Find Classes

Specify operations

Refine classes by specifying the sets of operations on them. Naturally, it is not possible to separate finding the classes from figuring out what operations are needed on them. However, there is a practical difference in that finding the classes is focusses on the key concepts and deliberately deemphasizes the computational aspects of the classes, whereas specifying the operations focusses on finding a complete and usable set of operations.

The strategy in considering what functions are to be provided may be the following:

Motto: Try to minimalize your interface. You can allwais extend your interface, but almost never narrow it. Note that minimalism requires more work from the designer, rather than less. When choosing operations, it is also important to focus on what to be done rather than how it is to be done.

Classification of operations:


next up previous
Next: Specify Dependencies Up: C++ Design Issues Previous: Find Classes
Porkoláb Zoltán 2001-09-03