继承是一个耦合机制:它使用关于可见性、方法调度等定义明确的规则绑定两个实体。
Inheritance is a coupling mechanism: it binds two entities together with well-defined rules about visibility, method dispatch, and so on.
继承是面向对象语言的一个自然部件,许多开发人员忽视了这样的一个事实,继承的核心是一个耦合机制。
Inheritance is such a natural part of object-oriented languages that most developers lose sight of the fact that, at its heart, it is a coupling mechanism.
传输独立性:具有不依赖于特定传输或协议机制的实现的服务可促进松散耦合。
Transport independence: a service with an implementation that's not dependent on a specific transport or protocol mechanism promotes loose coupling.
应用推荐