Information of Liskov Substitution Principle and Interface Segregation Principle: make example

This commit is contained in:
Yousri 2022-05-10 12:03:43 +02:00
parent a52ad43855
commit cd7343dec8
1 changed files with 9 additions and 0 deletions

View File

@ -174,3 +174,12 @@ That will be more simple to do extension.
### Liskov Substitution Principle ### 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