The following seem reasonable to me:
You might have thought of others, but the above will be enough for now.
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()
.
Is there enough information to start writing the program?