previous |
start |
next
CRC Cards
- Once a set of classes had been identified, you
need to define the behavior (member functions) for each
classes.
- A simple rule for finding member functions is
to look for verbs in the task description, and then match the verbs
to the appropriate objects.
- To create an invoice we need to compute the
amount due.
- Do customers compute the amount
due?
- Do invoices total up the amount
due?
- Do items total themselves up?
previous |
start |
next