文件名称:依赖倒转原则-java高级 面向对象
文件大小:1.88MB
文件格式:PPT
更新时间:2024-05-16 03:14:27
13 21
依赖倒转原则 依赖倒转原则定义 依赖倒转原则:高层模块不应该依赖低层模块,它们都应该依赖抽象。抽象不应该依赖于细节,细节应该依赖于抽象。 Dependency Inversion Principle (DIP): High level modules should not depend upon low level modules, both should depend upon abstractions. Abstractions should not depend upon details, details should depend upon abstractions.