OO Design Notes.
This commit is contained in:
7
Distributed_Systems/oo_design.md
Normal file
7
Distributed_Systems/oo_design.md
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
- Program to an interface, not an implementation
|
||||
- Inheritence breaks encapsulation
|
||||
- interface -> implementation dependency
|
||||
-> difficul to reuse
|
||||
- Favor object composition over class Inheritence
|
||||
- composition -> reusable components
|
||||
Reference in New Issue
Block a user