This section describes the activities involved in constructing a routine, namely these:
Design the routine.
Code the routine.
Check the code.
Clean up loose ends.
Repeat as needed.
Once you've identified a class's routines, the first step in constructing any of the class's more complicated routines is to design it. Suppose that you want to write a routine to output an error message depending on an error code, and suppose that you call the routine ReportErrorMessage(). Here's an informal spec for ReportErrorMessage():
ReportErrorMessage() takes an error code as an input argument and outputs an error message corresponding ...