摘要:
什么是迪米特法则 迪米特法则也被称为最少知识原则(Least knowledge Principle,LKP)也可以表述为 一个对象应该对其他对象有最少的了解,即一个类应该对自己需要耦合或调用的类知道的最少。 我们先看看它原汁原味的英文定义: Each unit should have only l 阅读全文
摘要:
一.依赖倒置原则的定义 依赖倒置原则,英文缩写DIP,全称Dependence Inversion Principle。 原始定义:High level modules should not depend upon low level modules. Both should depend upon 阅读全文