
DesignPatterns
文章平均质量分 82
头像是我的偶像
这个作者很懒,什么都没留下…
展开
-
DesignPatterns_Bridge
//////////////////////////////////////////////////////////////////////////////// Bridge// - Decouple an sbstraction from its implementation so that the two can // vary independently.//// A原创 2015-05-08 15:21:48 · 762 阅读 · 0 评论 -
DesignPatterns_FactoryMethod
//////////////////////////////////////////////////////////////////////////// Factory Method Pattern// - Define an interface for creating an object, but let subclasses decide// which class to i原创 2015-05-06 13:10:01 · 357 阅读 · 0 评论 -
DesignPatterns_Prototype
///////////////////////////////////////////////////////////////// Prototype Pattern// - Specify the kinds of objects to create using a prototypical // instance, and create new object by copyin原创 2015-05-06 17:49:00 · 346 阅读 · 0 评论 -
DesignPatterns_Interpreter
///////////////////////////////////////////////////////////////////////////////////////// Interpreter pattern// - Given a language, define a represention for its grammar along with an interpreter原创 2015-05-14 12:23:31 · 466 阅读 · 0 评论 -
DesignPatterns_Iterator
/////////////////////////////////////////////////////////////////////////////////////////// Iterator// - Provide a way to access the elements of an aggregate object sequentially without// expo原创 2015-05-14 17:52:18 · 453 阅读 · 0 评论 -
DesignPatterns_Observer
///////////////////////////////////////////////////////////////////////////////// Observer pattern// - Define a one-to-many dependency between objects so that when one object// changes state,原创 2015-05-16 14:54:47 · 445 阅读 · 0 评论 -
DesignPatterns_Singleton
///////////////////////////////////////////////////////////////////////// Singleton Pattern// - Ensure a class only has one instance, and provide a global point // of access to it.//// Aut原创 2015-05-07 09:35:03 · 398 阅读 · 0 评论 -
DesignPatterns_State
/////////////////////////////////////////////////////////////////////////////////////// State pattern// - Allow an object to alter its behavior when its internal state changes. The object// wi原创 2015-05-17 13:57:21 · 433 阅读 · 0 评论 -
DesignPatterns_Strategy
/////////////////////////////////////////////////////////////////////////////// Strategy pattern// - Define a family of algorithms, encapsulate each one, and make them// interchangeable. Strat原创 2015-05-17 21:39:27 · 493 阅读 · 0 评论 -
DesignPatterns_TemplateMethod
////////////////////////////////////////////////////////////////////////////// Template Method pattern// - Define the skeleton of an algorithm in an operation, deferring some steps// to subcla原创 2015-05-17 22:54:42 · 479 阅读 · 0 评论 -
DesignPatterns_Memento
/////////////////////////////////////////////////////////////////////////////////////////// Memento pattern// - Without violating encapsulation, capture and externalize an object's internal state原创 2015-05-15 18:13:31 · 481 阅读 · 0 评论 -
DesignPatterns_Mediator
/////////////////////////////////////////////////////////////////////////////////////////// Mediator pattern// - Define an object that encapsulates how a set of objects interact. Mediator promotes原创 2015-05-15 11:05:07 · 422 阅读 · 0 评论 -
DesignPatterns_Command
//////////////////////////////////////////////////////////////////////////////////// Command pattern// - Encapsulate a request as an object, thereby letting you parameterize clients// with dif原创 2015-05-13 17:35:27 · 404 阅读 · 0 评论 -
DesignPatterns_Adapter
////////////////////////////////////////////////////////////////////////////////// Adapter pattern// - Convert the interface of a class into another interface clients expect.// Adapters lets c原创 2015-05-08 08:33:58 · 343 阅读 · 0 评论 -
DesignPatterns_Composite
////////////////////////////////////////////////////////////////////////// Composite// - Compose objects into tree structures to represent part-whole // hierarchies. Composite lets client trea原创 2015-05-09 20:16:59 · 335 阅读 · 0 评论 -
DesignPatterns_Decorator
///////////////////////////////////////////////////////////////////////////////// Decorator// - Attach additional responsibilities to an object dynamically. Decorators// provide a flexible alt原创 2015-05-10 23:40:58 · 383 阅读 · 0 评论 -
DesignPatterns_Facade
///////////////////////////////////////////////////////////////////////// Facade pattern:// - Provide a unified interface to a set of interfaces in a subsystem.// Facade defines a higher-level原创 2015-05-11 15:55:45 · 491 阅读 · 0 评论 -
DesignPatterns_Flyweight
//////////////////////////////////////////////////////////////////////////////// Flyweight pattern// - Use sharing to support large numbers of fine-grained objects efficiently.// // Author原创 2015-05-11 23:00:49 · 389 阅读 · 0 评论 -
DesignPatterns_Proxy
//////////////////////////////////////////////////////////////////////////////////// Proxy pattern// - Provide a surrogate or placeholder for another object to control access to it.//// Author原创 2015-05-12 12:48:07 · 395 阅读 · 0 评论 -
DesignPatterns_ChainOfResponsibility
///////////////////////////////////////////////////////////////////////////////// Chain of Responsibility pattern// - Avoid coupling the sender of a request to its receiver by giving more than//原创 2015-05-12 22:50:39 · 434 阅读 · 0 评论 -
DesignPatterns_Builder
////////////////////////////////////////////////////////////////////////////// Builder Pattern// - Separate the construction of a complex object from its representation// so that the same cons原创 2015-05-05 18:29:53 · 342 阅读 · 0 评论 -
DesignPatterns_AbstractFactory
//////////////////////////////////////////////////////////////////// Abstract Factory: // -- Provide an interface for creating families of related or// dependent objects without specifying th原创 2015-05-03 23:07:53 · 390 阅读 · 0 评论 -
DesignPatterns_Visitor
////////////////////////////////////////////////////////////////////////////////////// Visitor pattern// - Represent an operation to be performed on the elements of an object structure.// Visi原创 2015-05-21 22:19:59 · 590 阅读 · 0 评论