diff --git a/Distributed_Systems/oo_design.md b/Distributed_Systems/oo_design.md new file mode 100644 index 0000000..52917d2 --- /dev/null +++ b/Distributed_Systems/oo_design.md @@ -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