Skip to content

Commit

Permalink
Clarify LO-DIP
Browse files Browse the repository at this point in the history
  • Loading branch information
damithc committed Sep 27, 2016
1 parent d0bf45b commit 991550a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/LearningOutcomes.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ Covered by `[LO-Polymorphism]`
#### Exercise: Invert dependency from Logic to Storage

* Note how `Logic` class depends on the `StorageFile` class. This is a violation of DIP.
* Modify the implementation as follows so that both `Logic` and `StorageFile` now depend on the abstraction
`Storage`. (Note: The term *abstraction* here is referring to the concept of abstracting, not to the fact
that `Storage` class is `abastract`)<br> <img src="images/LogicStroageFileDIP.png" width="300">
* Modify the implementation as follows so that both `Logic` and `StorageFile` now depend on the
`abstract` class `Storage`. <br>
<img src="images/LogicStroageFileDIP.png" width="300">
* Where else in the code do you notice the application of DIP?

------------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit 991550a

Please sign in to comment.