From 0483ae73fbc6f70c267ac77738a9e018524cd7b3 Mon Sep 17 00:00:00 2001 From: vahagn Date: Tue, 11 May 2021 23:34:41 +0100 Subject: [PATCH] OO Design Notes. --- Distributed_Systems/oo_design.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Distributed_Systems/oo_design.md 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