Merge pull request #822 from BBBThunda/fixLiskovTypo

Fix typo in SOLID Liskov subheading
This commit is contained in:
Josh Lockhart
2019-08-17 11:02:19 -04:00
committed by GitHub

View File

@@ -51,7 +51,7 @@ the parent class type definitions.” Or, in Robert C. Martins words, “S
types.”
For example, if we have a `FileInterface` interface which defines an `embed()` method, and we have `Audio` and `Video`
classes which both implement the `embed()` method, then we can expect that the usage of the `embed()` method will always
classes which both implement the `FileInterface` interface, then we can expect that the usage of the `embed()` method will always
do the thing that we intend. If we later create a `PDF` class or a `Gist` class which implement the `FileInterface`
interface, we will already know and understand what the `embed()` method will do. The largest benefit of this approach
is that we have the ability to build flexible and easily-configurable programs, because when we change one object of a