Information of Liskov Substitution Principle and Interface Segregation Principle: make example
This commit is contained in:
parent
a52ad43855
commit
cd7343dec8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue