go to previous page   go to home page   go to next page

Answer:

The following seem reasonable to me:

You might have thought of others, but the above will be enough for now.


Requirements for Behavior

The constructor creates a new checking account and initializes it with its account number, the account holder's name, and the starting balance. Now we have a fair idea about what the class looks like:

For a large project, creating specifications is hard because objects interact with perhaps hundreds of other objects. In this example program, objects interact only with main().


QUESTION 4:

Is there enough information to start writing the program?