A halfway decent programmer
1. 高階模組不應該依賴低階模組,兩者都應該依賴抽象
2. 抽象不依賴實作細節,實作細節依賴抽象
幾個網路上的文章說明的蠻清楚的,在這邊筆記一下!
控制反轉(Inversion of Control)介紹 | Java頻道
Dependency Inversion Principle | Object Oriented Design
What is Dependency Inversion? Is it IoC? – Java Code Geeks
— EOF —
No comments:
Post a Comment