s1.OOD准则 5、内聚 Cohesion: 服务内聚 (service cohesion) 个服务只完成一个功能。 类内聚 class cohesion):一个类只有一个用途,否则分 解之 般-特殊内聚 6、复用性 Reusability!y5 §1. OOD准则 一般-特殊内聚 5、内聚Cohesion: 服务内聚(service cohesion):一个服务只完成一个功能。 类内聚(class cohesion):一个类只有一个用途,否则分 解之。 6、复用性Reusability