随笔分类 - 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...
阅读全文
摘要: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...
阅读全文
摘要:Abstract Factory (抽象工厂) — 【面向对象设计模式学习】By CityWalker 2010年3月17日IntentProvide an interface for creating families of related or dependent objects without specifying their concrete classes.Applicabi...
阅读全文
摘要: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...
阅读全文
摘要:说明: 关于设计模式的文章网上已经很多了,本人也只是想参考别人的文章来系统地学习一下设计模式,因此,这个系列并不是一个系列教程,而仅仅是作为本人学习设计模式的一个学习笔记,此外,由于本人能力有限,其中难免有些错误,还请路过的各位不吝赐教!学习大纲:一、Creational patterns【创建型模式】 1. Singleton (单例) 2. Abstract Factory (抽象工厂)...
阅读全文

浙公网安备 33010602011771号