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:
13
.obsidian/plugins/oz-image-plugin/data.json
vendored
Normal file
13
.obsidian/plugins/oz-image-plugin/data.json
vendored
Normal 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
2
.obsidian/workspace
vendored
@@ -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",
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ description:
|
|||||||
策略模式可以提供不一樣的演算法,但是又不用更改程式。
|
策略模式可以提供不一樣的演算法,但是又不用更改程式。
|
||||||
以常見的鴨子為例,有一個基礎類別Duck,如何衍生出會飛得鴨子跟不會飛的鴨子?抑或是會叫的跟不會叫的?
|
以常見的鴨子為例,有一個基礎類別Duck,如何衍生出會飛得鴨子跟不會飛的鴨子?抑或是會叫的跟不會叫的?
|
||||||
第一部是將會變動的部份分離出來,讓鴨子類別不需要去在乎飛跟叫的問題。
|
第一部是將會變動的部份分離出來,讓鴨子類別不需要去在乎飛跟叫的問題。
|
||||||
再來是把飛跟叫的部份包裝成另一個class,並以之為基礎類別來實做出「實際的類別」。
|
再來是把飛跟叫的部份包裝成另一個class,並以之為基礎類別來實做出「實際的類別」。 ^e59e9f
|
||||||
|
|
||||||
以一般C++的override方法,會用的方式大致是這樣:
|
以一般C++的override方法,會用的方式大致是這樣:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user