Re:Who does cut the wood? (a meditation on Object Oriented D...
by damiankennedy on Tuesday September 11, 2012 @06:05AM
(#4504597)
This is a good example if you also include a Saw class and an Axe class. Saw and Axe implement ICutter and IUsable. The Tree class implements ICuttable. Then Worker class calls ICutter.cut(ICuttable)
[ Parent
| on HN ]