program to an interface not an implementation
编程到接口而不是实现
以上为机器翻译结果,长、整句建议使用 人工翻译 。
The first principle is: "Program to an interface, not an implementation."
第一条是:“面向接口编程,而非面向实现编程”。
youdao
Program to an interface, not an implementation.
面向接口编程,而不要面向实现编程。
要针对接口编程,不要针对实现编程。
应用推荐
模块上移
模块下移
不移动