vault backup: 2022-06-14 15:53:24

Affected files:
.obsidian/workspace
02. PARA/03. Resources(資源)/Design Pattern.md
attachments/20220614154819_Observer_Pattern.png
This commit is contained in:
2022-06-14 15:53:24 +08:00
parent 08e568d9e5
commit ec871c349f
3 changed files with 12 additions and 5 deletions

10
.obsidian/workspace vendored
View File

@@ -9,7 +9,7 @@
"state": { "state": {
"type": "markdown", "type": "markdown",
"state": { "state": {
"file": "02. PARA/03. Resources資源/C++17/lambda.md", "file": "02. PARA/03. Resources資源/Design Pattern.md",
"mode": "source", "mode": "source",
"source": true "source": true
} }
@@ -69,7 +69,7 @@
"state": { "state": {
"type": "backlink", "type": "backlink",
"state": { "state": {
"file": "02. PARA/03. Resources資源/C++17/lambda.md", "file": "02. PARA/03. Resources資源/Design Pattern.md",
"collapseAll": false, "collapseAll": false,
"extraContext": false, "extraContext": false,
"sortOrder": "alphabetical", "sortOrder": "alphabetical",
@@ -86,7 +86,7 @@
"state": { "state": {
"type": "outline", "type": "outline",
"state": { "state": {
"file": "02. PARA/03. Resources資源/C++17/lambda.md" "file": "02. PARA/03. Resources資源/Design Pattern.md"
} }
} }
} }
@@ -116,6 +116,7 @@
}, },
"active": "cfe19fa2de06a1e6", "active": "cfe19fa2de06a1e6",
"lastOpenFiles": [ "lastOpenFiles": [
"02. PARA/03. Resources資源/Design Pattern.md",
"02. PARA/03. Resources資源/C++17/lambda.md", "02. PARA/03. Resources資源/C++17/lambda.md",
"02. PARA/03. Resources資源/C++17/C++17.md", "02. PARA/03. Resources資源/C++17/C++17.md",
"02. PARA/03. Resources資源/C++17/以值擷取captured-by-value.md", "02. PARA/03. Resources資源/C++17/以值擷取captured-by-value.md",
@@ -124,7 +125,6 @@
"02. PARA/01. Project專案/未命名.md", "02. PARA/01. Project專案/未命名.md",
"02. PARA/01. Project專案/008. Sentinel.md", "02. PARA/01. Project專案/008. Sentinel.md",
"02. PARA/03. Resources資源/99. templates/front matter.md", "02. PARA/03. Resources資源/99. templates/front matter.md",
"02. PARA/03. Resources資源/Obsidian.md", "02. PARA/03. Resources資源/Obsidian.md"
"attachments/Pasted image 20201206094618.png"
] ]
} }

View File

@@ -131,3 +131,10 @@ class duckWood : public duck {
![[Pasted image 20220526183019.png]] ![[Pasted image 20220526183019.png]]
這樣做的另一個好處是fly的初始化是動態的只要再多一個`set()` function就可以動態的切換實作也就是說你可以從設定檔來決定你的鴨子要長什麼樣子。 這樣做的另一個好處是fly的初始化是動態的只要再多一個`set()` function就可以動態的切換實作也就是說你可以從設定檔來決定你的鴨子要長什麼樣子。
## 觀察者模式Observer Pattern
有一個會產生變動的主角subject與一堆需要觀察變動的「觀察者」。觀察者向主角註冊當主角發生變化的時候發後通知給觀察者。
![[20220614154819_Observer_Pattern.png]]
其中

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB