Object oriented design (OOD)
Observer
Composite
- 檔案系統, 包含目錄和檔案, 目錄又可以進一步包含檔案和目錄
- 容器中儲存的元素需要時同樣大小的, 因此將目錄和檔案抽象成一個基類, 儲存基類的指標
Prototype
- 如何建立未來的子類物件?
- 讓子類自己建立一個物件後, 將該物件新增到基類中, 基類對其進行拷貝一份即可.
- 變數名 : 變數型別 (下劃線表示靜態資料)
- -表示私有, #表示protected, +表示public
- 私有建構函式呼叫父類的addPrototype將物件新增到父類容器中
- 父類通過物件呼叫子類的clone函式製造副本
- clone函式呼叫的建構函式是另外一種過載, 需要和之前呼叫addPrototype函式的建構函式相區分, 使用一個dummy argument.
- clone函式呼叫的建構函式是另外一種過載, 需要和之前呼叫addPrototype函式的建構函式相區分, 使用一個dummy argument.
相關文章
- PROG2004 Object Oriented ProgrammingObject
- COMP2011J - Object Oriented ProgrammingObject
- MIT6.0001 筆記,LECTURE 8:Object Oriented Programming (class,object,method)MIT筆記Object
- 《Effective C++》第三版-6. 繼承與物件導向設計(Inheritance and Object-Oriented Design)C++繼承物件Object
- OOP物件導向程式設計(Object-Oriented Programming)概述OOP物件程式設計Object
- OOD&OOP-單例模式OOP單例模式
- Multi-Agent Oriented Programming PDF Download
- The Principles of OOD 物件導向設計原則物件
- 面向切面程式設計 ( Aspect Oriented Programming with Spring )程式設計Spring
- Blind Return Oriented Programming (BROP) Attack - 攻擊原理
- 翻譯 | The Principles of OOD 物件導向設計原則物件
- design for failureAI
- Design ten
- ES7 Object.keys,Object.values,Object.entriesObject
- ObjectObject
- 介面返回[object,Object]解決方法Object
- 年之就包縣今觀展清音起受響ood
- Ant Design 官方《Ant Design 實戰教程》釋出
- MXRuntimeUtils,替代 [NSObject performSelector object object ]的工具ObjectperformSelector
- Design a Moore FSM
- System Design InterviewView
- System design summary
- Relationship Database DesignDatabase
- Design Compiler(一)Compile
- STL and Design Pattern
- Design Patterns - Component
- Ant Design VueVue
- Object流Object
- object類Object
- [Design Pattern] Upload big file - 3. Code Design - part 1
- Object.seal()與Object.freeze()區別Object
- [Design Pattern] Upload big file - 4. Code Design - part 2 & Summary
- OOD、DIP、IOC、DI、依賴注入容器(即 控制反轉容器,IOC Container)依賴注入AI
- Android之Material DesignAndroidMaterial Design
- [review]Design Pattern:CommandView
- ant-design-vueVue
- PhysicalProduct Advanced class design
- Object.is()與'==='Object