TE
科技回声
首页
24小时热榜
最新
最佳
问答
展示
工作
中文
GitHub
Twitter
首页
Who does cut the wood? (a meditation on Object Oriented Design)
2 点
作者
sandeepshetty
超过 12 年前
1 comment
damiankennedy
超过 12 年前
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)