Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
Who does cut the wood? (a meditation on Object Oriented Design)
(opens in new tab)
(stackoverflow.com)
2 points
sandeepshetty
13y ago
1 comments
Save
Share
1 comments
1 comments · 1 top-level
top
newest
oldest
damiankennedy
13y ago
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)
j
/
k
navigate · click thread line to collapse