Collect design pattern
這些模式主要是負責物件之間溝通的演算法和其權責委派有關
These patterns are concerned with algorithms and the assignment of responsibilities between objects.
- Chain of responsibility
- Command
- Iterator
- Mediator
- Memento
- Observer
- State
- Strategy
- Template Method
- Visitor
這些模式提供了各種物件建立機制,從而增加了靈活性和現有代碼的重用性。
These patterns provide various object creation mechanisms, which increase flexibility and reuse of existing code.
- Abstract factory
- Builder
- Factory Method
- Prototype
- Singleton
這些模式說明如何將物件和 class 組成更大的結構,同時保持這些結構的靈活性和效率。
These patterns explain how to assemble objects and classes into larger structures while keeping these structures flexible and efficient.
- Adapter
- Bridge
- Composite
- Decorator
- Facade
- Flyweight
- Proxy