Think of three data items that will be part of the state of a checking account.

A good answer might be:

The following seem reasonable to me. You might have thought of others.

  • Account number.
  • Name of account holder.
  • Current balance.

Requirements for the State

A real checking account would contain a great deal more state, but for this example, the above is enough. It is too early to think about what types of variables are going to be used for the above data. That will come later.

Next, think about what actions will be performed on a checking account. That is, what behavior will a checking account have?

QUESTION 3:

Think of three behaviors a checking account should have.

Click Here after you have answered the question