設計模式之禪筆記--面向對象設計六大原則之三

第三章   依賴倒置原則(DIP) 定義: 依賴倒置原則( Dependence Inversion Principle,DIP) 這個名字看着有點彆扭,「依賴」還「倒置」, 這到底是什麼意思? 依賴倒置原則的原始定義是: Highlevel modules should not depend upon low level modules. Both should depend uponabstr
相關文章
相關標籤/搜索