Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/an5dy/design-pattern

设计模式
https://github.com/an5dy/design-pattern

Last synced: 17 days ago
JSON representation

设计模式

Awesome Lists containing this project

README

        

# 设计模式学习
- 备忘录模式(memento)
> 备忘录模式(Memento Pattern)保存一个对象的某个状态,以便在适当的时候恢复对象。备忘录模式属于**行为型模式**。
- 状态模式(state)
> 在状态模式(State Pattern)中,类的行为是基于它的状态改变的。这种类型的设计模式属于**行为型模式**。
- 迭代器模式(iterator)
> 迭代器模式(Iterator Pattern)是 Java 和 .Net 编程环境中非常常用的设计模式。这种模式用于顺序访问集合对象的元素,不需要知道集合对象的底层表示。迭代器模式属于**行为型模式**。