我在理解声明时遇到了问题low in coupling and high in cohesion.我用Google搜索并阅读了很多相关信息,但仍然难以理解.
low in coupling and high in cohesion
根据我的理解High cohesion,我们应该拥有专门用于执行特定功能的类.希望这是正确的吗?就像信用卡验证类一样,专门用于验证信用卡.
High cohesion
还是不明白低耦合意味着什么?
oop ooad
ooad ×1
oop ×1