设计模式之一:分类

一,组件协作:

Template Method

Strategy

Observer / Event

二,单一职责:解决类与类的责任划分问题

Decorator

Bridge

三,对象创建:

Factory Method

Abstract Factory

Prototype

Builder

四,对象性能

Singleton

Flyweight\

五,接口隔离

Facade

Proxy

Mediator

Adapter

六,状态变化

Memento

State

七,数据结构

Composite

Iterator

Chain of Responsibility

八,行为变化

Command

Visitor

九,领域问题

Interpreter

猜你喜欢

转载自www.cnblogs.com/inspred/p/10976463.html