We can define generic methods in one place and mix them into our Objects across multiple Class types while limiting access to sensitive methods on a per Object basis.
我们可以在一个地方定义通用的方法,然后将它们混入跨越多个类类型的对象,同时限制对每个对象为基础的敏感方法的访问。
Therefore, low coupling requires limiting the dependency level among objects.
因此,低耦合需要限制对象之间的依赖级别。
It is said that an object is low in cohesion when it takes on responsibilities that should be performed by other objects; in other words, high cohesion requires limiting an object's responsibilities.
有人说,当对象承担应该由其他对象执行的职责时,它就是低内聚的,换句话说,高内聚需要限制对象的职责。
应用推荐