Skip to content

Commit 5238bdb

Browse files
committed
readme
1 parent 738830d commit 5238bdb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Facade/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
為子系統中的一組介面提供一個一致的界面,此模式定義了一個高層介面,
55
這個介面使得這一子系統更加容易使用(投資:基金,股票,房產)
66

7+
##### 外觀 vs. [轉接器](https://github.com/kimi0230/DesignPatternGolang/tree/master/Adapter)
8+
9+
外觀定義的是一個新的介面, 為現存系統停工一個更為方便的存取介面;
10+
轉接則是復用一個原有的介面, 轉接器是使兩個已有的介面協同工作
11+
外觀模式用來轉接整個子系統, 轉接用來轉接物件
12+
713
##### 個人想法:
814
Mediator 中介者模式、外觀模式:每個對像都保存一份中介者對象,
915
在和其他對象交互時,通過中介者來完成,

0 commit comments

Comments
 (0)