previous |
start |
next
Example: Printing an Invoice (CRC Cards)
- The invoice also needs to compute the total
amount due.
- To obtain that amount, it must ask each item
about the total price.
- Each item must ask the product for the unit
price and multiply it by the quantity.
previous |
start |
next