OO設計原則 -- Dependency Inversion Principle:依賴倒置原則(DIP)

依賴倒置原則的2個重要方針 A. High level modules should not depend upon low level modules. Both shoulddepend upon abstractions. 高層模塊不應該依賴於低層模塊,二者都應該依賴於抽象 B. Abstractions should not depend upon details. Details sho
相關文章
相關標籤/搜索