Fork me on GitHub

8/16/2011

[DP] Dependency Inversion Principle 依賴倒轉原則

1. 高階模組不應該依賴低階模組,兩者都應該依賴抽象

2. 抽象不依賴實作細節,實作細節依賴抽象

幾個網路上的文章說明的蠻清楚的,在這邊筆記一下!

  1. 控制反轉(Inversion of Control)介紹 | Java頻道

  2. Dependency Inversion Principle | Object Oriented Design

  3. What is Dependency Inversion? Is it IoC? – Java Code Geeks

— EOF —

No comments:

Post a Comment