随笔分类 -  设计模式

模版方法(Template Method Pattern)
摘要:Template Method:Define the skeleton of an algorithm in an operation, deferring some steps to subclasses. Template Method lets subclasses redefine certain steps of an algorithm without changing the alg... 阅读全文

posted @ 2010-04-14 19:54 ethanchan 阅读(197) 评论(0) 推荐(0)

关于工厂模式
摘要:... 阅读全文

posted @ 2010-03-19 15:40 ethanchan 阅读(104) 评论(0) 推荐(0)

关于单例模式(sington)
摘要:... 阅读全文

posted @ 2010-03-19 15:40 ethanchan 阅读(138) 评论(0) 推荐(0)

关于策略模式(转)
摘要:Design Patterns书里的定义:Define a family of algorithms, encapsulate each one, and make them interchangeable. [The] Strategy [pattern] lets the algorithm vary independently from clients that use it . 策略模式(... 阅读全文

posted @ 2010-03-19 15:40 ethanchan 阅读(172) 评论(0) 推荐(0)

导航