OOP Design chinh phục
1. Giới thiệu
Làm sao để chinh phục được OOP, đó chính là design pattern nhưng mà để học design pattern chẳng phải là dễ.
Haizz phải học như nào đây ???
2. Chiến thôi
Finding Appropriate Objects
Determining Object Granularity
Specifying Object Interfaces
Specifying Object implementations
Class vs Interface inheritance
Programing to an Interface, not an implementations
Putting reuse mechanisms to work
Inheritance vs composition
Delegation
Inheritance vs Paramatized type
Relating run-time and compile time structures
Designing for change
Application program
Toolkits
Frameworks
3. Finding Appropriate Objects
Objects : data and operations
Client gửi request đến Objects --> Objects sẽ thực hiện operations : chỉ có cách này mới có thể thay đổi internal data của Objects
4. Determining Objects Granularity
5. Specifying Objects Interfaces
6. Specifying Object Implementations
6.1 Class vs
7. Putting reuse mechanisms to work
7.1 Inheritance and composition
7.2 Delegation
8. Relating run-time and compile time structures
Compile time:
Ví dụ : compile của Javascript
JavaScript --> C ++ --> C --> Hợp ngữ ---> Mã máy
Run-time: trong thời gian chạy chương trình sẽ chiếm :
CPU, Multi thread
Bộ nhớ (RAM, cached)
Tài nguyên khác: màn hình, máy in, ...
9. Designing for change
Last updated
Was this helpful?