OO Design Notes.

This commit is contained in:
2021-05-11 23:34:41 +01:00
parent c2b6523a08
commit 0483ae73fb

View 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