摘要: Definition:Identify the aspects of your application that vary and separate them from what stays the sameSample Code:namespace StrategyPattern{ public abstract class Duck { protected FlyBehavior flyBehavior; protected QuackBehavior quackBehavior; public Duck() { } pu... 阅读全文
posted @ 2012-04-11 18:54 Leo Tang 阅读(132) 评论(0) 推荐(0) 编辑