From cd7343dec8c620bf91cb9280d425bf61c9f868aa Mon Sep 17 00:00:00 2001 From: Yousri <54667@etu.he2b.be> Date: Tue, 10 May 2022 12:03:43 +0200 Subject: [PATCH] Information of Liskov Substitution Principle and Interface Segregation Principle: make example --- Intro_to_Solid.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Intro_to_Solid.md b/Intro_to_Solid.md index 32c79c5..4522e8b 100644 --- a/Intro_to_Solid.md +++ b/Intro_to_Solid.md @@ -174,3 +174,12 @@ That will be more simple to do extension. ### Liskov Substitution Principle +This convention tells us to create a substitutable subclass for their parents. +So, if you want to create an object in the subclass, you have to be able to pass it in the interface. + +### Interface Segregation Principle + +The _Interface Segregation Principle_ means that all interfaces have to be separated. +That means that clients has not functions that they do not need. + +### Dependency Inversion Principle