Answer:
The following seem reasonable to me:
- Accept a deposit
- Process a check
- Get the current balance
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:
- Data
- Account number
- Name of account holder
- Current balance
- Constructor
- Create the object; initialize the three data items
- Methods
- Accept a deposit
- Process a check
- Get the current balance
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?