26.7 Case Study: Putting Patterns to Work (cont.)
We want to add simple products to an invoice
Invoice stores
Item
s, not
Product
s
Use ADAPTER pattern, define
ProductItem
that wraps a
Product
in an
Item
i/f:
prev
|
top
|
next