Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/an5dy/design-pattern
设计模式
https://github.com/an5dy/design-pattern
Last synced: 17 days ago
JSON representation
设计模式
- Host: GitHub
- URL: https://github.com/an5dy/design-pattern
- Owner: An5dy
- Created: 2020-05-22T08:56:12.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-05-24T12:50:27.000Z (over 4 years ago)
- Last Synced: 2024-11-20T19:54:24.786Z (3 months ago)
- Language: PHP
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 设计模式学习
- 备忘录模式(memento)
> 备忘录模式(Memento Pattern)保存一个对象的某个状态,以便在适当的时候恢复对象。备忘录模式属于**行为型模式**。
- 状态模式(state)
> 在状态模式(State Pattern)中,类的行为是基于它的状态改变的。这种类型的设计模式属于**行为型模式**。
- 迭代器模式(iterator)
> 迭代器模式(Iterator Pattern)是 Java 和 .Net 编程环境中非常常用的设计模式。这种模式用于顺序访问集合对象的元素,不需要知道集合对象的底层表示。迭代器模式属于**行为型模式**。