《設計模式——可複用物件導向軟體的基礎》學習筆記(1.5)Organizing the catalog...
1.Classify DPs by purpose.
(1)Creational DP: the process of object creation.
Factory Method, Abstract Factory, Builder, Prototype, Singleton
(2)Structural DP: composition of classes or objects.
Adapter, Bridge, Composite, Decorator, Facade, Flyweight, Proxy
(3)Behavioral DP: the way in which classes or objects interact and distribute responsibility.
Interpreter, Template Method, Chain of Responsibility, Command, Iterator, Mediator, Memento, Observer, State, Strategy, Visitor.
2.Classify DPs by scope
(1)Class DP: Deal with relationships between classes and their subclasses.
Factory Method, Adapter(Class), Interpreter, Template Method.
(2)Object DP: Deal with object relationships, which can be changed at run-time and are more dynamic.
Abstract Factory, Builder, Prototype, Singleton, Adapter(Object), Bridge, Composite, Decorator, Facade, Flyweight, Proxy, Chain of Responsibility, Command, Iterator, Mediator, Memonto, Observer, State, Strategy, Visitor
3.Classify DPs by purpose and scope.
(1)Creational Class DPs: Defer some part of object creation to subclasses.
Factory Method.
(2)Creational Object DPs: Defer some part of object creation to compose classes.
Abstract Factory
Builder
Prototype
Singleton
(3)Structural Class DPs: Use inheritance to compose classes.
Adapter(Class)
(4)Structural Object DPs: Describe ways to assemble objects.
Adapter(Object)
Bridge
Composite
Decorator
Facade
Flyweight
Proxy
(5)Behavioral Class DPs: Use inheritance to describe algorithms.
Interpreter
Template Method
(6)Behavioral Object DPs: Describe how a group of objects cooperate to perform a task that no single object can carry out alone.
Chain of Responsiblity
Command
Iterator
Mediator
Memento
Observer
State
Strategy
Visitor
4.Having multiple ways of thinking about patterns will deepen your insight into what they do, how they compare, and when to apply them.
(1)Creational DP: the process of object creation.
Factory Method, Abstract Factory, Builder, Prototype, Singleton
(2)Structural DP: composition of classes or objects.
Adapter, Bridge, Composite, Decorator, Facade, Flyweight, Proxy
(3)Behavioral DP: the way in which classes or objects interact and distribute responsibility.
Interpreter, Template Method, Chain of Responsibility, Command, Iterator, Mediator, Memento, Observer, State, Strategy, Visitor.
2.Classify DPs by scope
(1)Class DP: Deal with relationships between classes and their subclasses.
Factory Method, Adapter(Class), Interpreter, Template Method.
(2)Object DP: Deal with object relationships, which can be changed at run-time and are more dynamic.
Abstract Factory, Builder, Prototype, Singleton, Adapter(Object), Bridge, Composite, Decorator, Facade, Flyweight, Proxy, Chain of Responsibility, Command, Iterator, Mediator, Memonto, Observer, State, Strategy, Visitor
3.Classify DPs by purpose and scope.
(1)Creational Class DPs: Defer some part of object creation to subclasses.
Factory Method.
(2)Creational Object DPs: Defer some part of object creation to compose classes.
Abstract Factory
Builder
Prototype
Singleton
(3)Structural Class DPs: Use inheritance to compose classes.
Adapter(Class)
(4)Structural Object DPs: Describe ways to assemble objects.
Adapter(Object)
Bridge
Composite
Decorator
Facade
Flyweight
Proxy
(5)Behavioral Class DPs: Use inheritance to describe algorithms.
Interpreter
Template Method
(6)Behavioral Object DPs: Describe how a group of objects cooperate to perform a task that no single object can carry out alone.
Chain of Responsiblity
Command
Iterator
Mediator
Memento
Observer
State
Strategy
Visitor
4.Having multiple ways of thinking about patterns will deepen your insight into what they do, how they compare, and when to apply them.
相關文章
- 《設計模式——可複用物件導向軟體的基礎》學習筆記(1.1)What is a design pattern?...設計模式物件筆記
- 《設計模式——可複用物件導向軟體的基礎》學習筆記(1.4)The catalog of design patterns...設計模式物件筆記
- 《設計模式——可複用物件導向軟體的基礎》學習筆記(1.2)Design patterns in Smalltalk MVC...設計模式物件筆記MVC
- 《設計模式——可複用物件導向軟體的基礎》學習筆記(1.3)Describing design patterns...設計模式物件筆記
- 設計模式:可複用物件導向軟體及基礎:4-7 物件行為模式:備忘錄模式(Memento)設計模式物件
- 程式設計基礎·Java學習筆記·物件導向(下)程式設計Java筆記物件
- (Java筆記)物件導向基礎Java筆記物件
- 菜鳥學習筆記:Java基礎篇1(基礎語法、物件導向)筆記Java物件
- [筆記]物件導向的程式設計筆記物件程式設計
- 【軟體工程】物件導向的設計軟體工程物件
- Lua學習筆記--物件導向(三)筆記物件
- C#學習筆記(六)——物件導向程式設計簡介C#筆記物件程式設計
- Python3:物件導向程式設計學習筆記(2)Python物件程式設計筆記
- 學習筆記:物件導向程式設計技術(C++版)筆記物件程式設計C++
- [.net 物件導向程式設計基礎] (2) 關於物件導向程式設計物件程式設計
- Flutter學習筆記(8)--Dart物件導向Flutter筆記Dart物件
- js高階 物件導向 學習筆記JS物件筆記
- Ext學習筆記2-物件導向筆記物件
- python物件導向程式設計基礎Python物件程式設計
- python基礎(物件導向程式設計)Python物件程式設計
- java基礎 韓順平老師的 物件導向(基礎) 自己記的部分筆記Java物件筆記
- JS物件導向設計模式JS物件設計模式
- 軟體設計師:物件導向技術物件
- 【設計模式筆記】(零)- 物件導向的六大原則設計模式筆記物件
- Javascript設計模式讀書筆記一 JAVASCRIPT物件導向的實現JavaScript設計模式筆記物件
- Python 3 學習筆記之——物件導向Python筆記物件
- 【python 物件導向】 python物件學習筆記《1》Python物件筆記
- [.net 物件導向程式設計基礎] (19) LINQ基礎物件程式設計
- <<軟體設計學習筆記>> (轉)筆記
- 我學設計模式 之 物件導向設計原則設計模式物件
- [.net 物件導向程式設計基礎] (16) 介面物件程式設計
- [.net 物件導向程式設計基礎] (22) 事件物件程式設計事件
- [.net 物件導向程式設計基礎] (13) 物件導向三大特性——多型物件程式設計多型
- [.net 物件導向程式設計基礎] (12) 物件導向三大特性——繼承物件程式設計繼承
- [.net 物件導向程式設計基礎] (11) 物件導向三大特性——封裝物件程式設計封裝
- 物件導向基礎物件
- 【JavaScript筆記 · 基礎篇(十)】物件導向程式設計之三:繼承機制JavaScript筆記物件程式設計繼承
- muduo網路庫學習筆記(0):物件導向程式設計風格和基於物件程式設計風格的比較筆記物件程式設計