August 2018
Intermediate to advanced
372 pages
9h 29m
English
The Liskov substitution principle (LSP) has a fancy definition:
Module A can be replaced by module B as long as B is a subtype of A.
Well-defined contracts heavily support this definition and help us reduce the coupling between modules. The following questions can help you figure out how well this principle is achieved:
Here, the answer should be that the modules should not be interacting with either option. There is no reason to establish interactions among modules by using their concrete implementations instead of their interfaces.
I hope not. If so, it's because the interface ...
Read now
Unlock full access