previous |
start |
next
Example: Printing an Invoice (CRC Cards)
- The purpose of the program is to print an
invoice. Record that responsibility on a CRC card.
|
Invoice
|
| print the
invoice |
| |
| |
| |
| |
- The invoice does not print the address. That
responsibility belongs to the Address class.
|
Address
|
| print the
address |
| |
| |
| |
| |
- Similarly, printing an item is the
responsibility of the Item class (no card
shown).
previous |
start |
next