vault backup: 2022-06-14 21:15:16

Affected files:
.obsidian/plugins/oz-image-plugin/data.json
.obsidian/workspace
02. PARA/03. Resources(資源)/Design Pattern.md
This commit is contained in:
2022-06-14 21:15:16 +08:00
parent 0fc1bf222d
commit 3810da15fe
3 changed files with 15 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
{
"renderAll": true,
"cm6RenderAll": true,
"renderImages": true,
"renderPDF": true,
"renderIframe": false,
"renderExcalidraw": false,
"renderRichLink": false,
"renderTransclusion": false,
"previewOnHoverInternalLink": false,
"refreshImagesAfterChange": false,
"WYSIWYG": false
}

2
.obsidian/workspace vendored
View File

@@ -118,9 +118,9 @@
"lastOpenFiles": [ "lastOpenFiles": [
"00. TOP/00. Inbox.md", "00. TOP/00. Inbox.md",
"00. TOP/01. TODO.md", "00. TOP/01. TODO.md",
"02. PARA/03. Resources資源/Design Pattern.md",
"02. PARA/01. Project專案/005. TestCam.md", "02. PARA/01. Project專案/005. TestCam.md",
"attachments/2018-10-06_01.jpg", "attachments/2018-10-06_01.jpg",
"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",

View File

@@ -10,7 +10,7 @@ description:
策略模式可以提供不一樣的演算法,但是又不用更改程式。 策略模式可以提供不一樣的演算法,但是又不用更改程式。
以常見的鴨子為例有一個基礎類別Duck如何衍生出會飛得鴨子跟不會飛的鴨子抑或是會叫的跟不會叫的 以常見的鴨子為例有一個基礎類別Duck如何衍生出會飛得鴨子跟不會飛的鴨子抑或是會叫的跟不會叫的
第一部是將會變動的部份分離出來,讓鴨子類別不需要去在乎飛跟叫的問題。 第一部是將會變動的部份分離出來,讓鴨子類別不需要去在乎飛跟叫的問題。
再來是把飛跟叫的部份包裝成另一個class並以之為基礎類別來實做出「實際的類別」。 再來是把飛跟叫的部份包裝成另一個class並以之為基礎類別來實做出「實際的類別」。 ^e59e9f
以一般C++的override方法會用的方式大致是這樣 以一般C++的override方法會用的方式大致是這樣