<<< Specifying the operations     Index     Choosing operations >>>

34. Strategy of finding operations


  1. Consider how an object of the class is to be constructed, copied (if at all), and destroyed.

  2. Define the minimal set of operations required by the concept the class is representing.

  3. Consider which operations could be added for notational convenience.

  4. Consider which operations are to be virtual, that is, operations for which the class can act as an interface for an implementation supplied by a derived class.

  5. Consider what commonality of naming and functionality can be achieved across all the classes of the component.

<<< Specifying the operations     Index     Choosing operations >>>