随笔分类 -  Design Patterns

摘要:Factory Method (工厂方法) — 【面向对象设计模式学习】By CityWalker 2010年3月24日 IntentDefine an interface for creating an object, but let subclasses decide which class to instantiate. Factory Method lets a class d... 阅读全文
posted @ 2010-03-24 15:05 CityWalker 阅读(508) 评论(0) 推荐(0)
摘要:Builder (建造者) — 【面向对象设计模式学习】By CityWalker 2010年3月19日IntentSeparate the construction of a complex object from its representation so that the same construction process can create different represe... 阅读全文
posted @ 2010-03-20 09:11 CityWalker 阅读(433) 评论(0) 推荐(0)
摘要:Abstract Factory (抽象工厂) — 【面向对象设计模式学习】By CityWalker 2010年3月17日IntentProvide an interface for creating families of related or dependent objects without specifying their concrete classes.Applicabi... 阅读全文
posted @ 2010-03-17 15:34 CityWalker 阅读(460) 评论(0) 推荐(0)
摘要:Singleton (单例) — 【面向对象设计模式学习】By CityWalker 2010年3月16日Intenta)Ensure a class has only one instance, and provide a global point of access toit. b) Encapsulated “just-in-time initialization&r... 阅读全文
posted @ 2010-03-16 15:25 CityWalker 阅读(539) 评论(0) 推荐(0)
摘要:说明:  关于设计模式的文章网上已经很多了,本人也只是想参考别人的文章来系统地学习一下设计模式,因此,这个系列并不是一个系列教程,而仅仅是作为本人学习设计模式的一个学习笔记,此外,由于本人能力有限,其中难免有些错误,还请路过的各位不吝赐教!学习大纲:一、Creational patterns【创建型模式】  1. Singleton (单例)  2. Abstract Factory (抽象工厂)... 阅读全文
posted @ 2010-03-15 17:26 CityWalker 阅读(303) 评论(0) 推荐(0)

天天来