View Code? Open in Web Editor
NEW
This project forked from eddiexh/designpattern_example
designpattern_example-1's Introduction
生成型模式(Creational Patterns)
生成型模式會牽涉到將物件實例化、它會提供一個方法,讓Client能夠從實例化物件的過程分離出來。
- 工廠方法 Factory Method
- 抽象工廠 Abstract Factory
- 建構者 Builder
- 單例 Singleton
- 原型 Prototype
結構型模式(Structural Patterns)
- 合成 Composite
- 裝飾者 Decorator
- 橋接 Bridge
- 享元 Flyweight
- 代理人 Proxy
- 轉接器 Adapter
- 表象 Facade
行為型模式(Behavioral Patterns)
行為型模式可以描述類別和物件如何互動,以及它們各自的責任。
- 策略 Strategy
- 命令 Command
- 疊代器 Iterator
- 狀態 State
- 訪問者 Visitor
- 備忘錄 Memento
- 觀察者 Observer
- 責任鏈 Chain of Responsibility
- 樣板方法 Template Method
- 解譯器 Interpreter
- 中介者 Mediator
designpattern_example-1's People
Contributors