设计模式
来源:互联网 发布:手机化妆软件下载 编辑:程序博客网 时间:2024/05/29 14:20
Creational Patterns
- Factory - This pattern is used to create concrete class instances without specifying the exact class type.
- Abstract Factory - This pattern is used to create concrete class instances without specifying the exact class type. The Abstract Factory Pattern provides a way to encapsulate a group of individual factories that have a common theme.
- Flyweight - A pattern used to maximize the sharing of objects resulting in reduced memory consumption.
- Singleton - This pattern insures that only a single instance of a given object can exist.
- Builder - This pattern separate the construction of a complex object from its representation so that the same construction process can create different representations..
Structural Patterns
- Adapter - Convert the interface of a class into another interface clients expect. Adapter lets the classes work together that couldn't otherwise because of incompatible interfaces
- Bridge - Decouples an abstraction from its implementation so that the two can vary independantly.
- Composite - Compose objects into tree structures to represent part-whole hierarchies. Composite lets clients treat individual objects and compositions of objects uniformly.
- Decorator - Allows an objects behavior to be altered at runtime.
- Facade - Used to provide a simpler interface into a more complicated portion of code.
- Proxy - Provides a Placeholder for another object to control access to it.
Behavioral Patterns
- Chain of Responsibility - The chain of responsibility pattern is a way of communicating between objects.
- Command - Encapsulates a request as an object, thereby letting you parameterize clients with different requests, queue or log requests, and support undoable operations.
- Iterator - Provides a way to sequentially access aggregate objects without exposing the structure of the aggregate.
- Mediator - The mediator pattern encapsulate the interaction between a set of objects.
- Memento - Allows you to save the state of an object externally from that object.
- Observer - Allows a single object to notify many dependent objects that its state has changed.
- State - Allows an object to change its behaviour when its internal state changes.
- Strategy - Allows multiple algorithms to be used interchangeably at runtime.
- Visitor - The visitor design pattern enables us to create new operations to be performed on an existing structure.
- Template Method - Defines the skeleton of an algorithm then lets subclasses implement the behaviour that can vary.
0 0
- 设计模式
- 设计模式
- 设计模式
- 设计模式
- 设计模式
- 设计模式
- 设计模式~~~~~~~~~~
- 设计模式
- 设计模式
- 设计模式
- 设计模式
- 设计模式
- 设计模式
- 设计模式
- 设计模式
- 设计模式
- 设计模式
- 设计模式
- 使用STL reserve()的必要性
- Android高效加载大图、多图解决方案,有效避免程序OOM
- iOS7后台机制大解析
- 【Android】app 启动 白屏 黑屏解决方案
- redis学习及实践5---redis相关资料参考文献
- 设计模式
- 小根堆
- 信息绑定与国际化
- Zoho CRM更新—集成Google AdWords、增加社交媒体管理、改进呼叫中心
- Sum Problem -- hdu acm 1001
- va_list简介
- 教学平台功能与子系统
- 8个开发技巧助你薪水更上一层楼
- 64位oracle数据库安装32位plsql解决方法/关于win7 x64 连接oracle 客户端 VS2010调试 提示“ORA-12154: TNS: 无法解析指定的连接标识符 ”