'Implementation of A with Low Cohesion' good reason or'Implementation of A with High Cohesion (Almost Atomic)..。'Implementation of A with Low Cohesion toor(x) = a(
我在理解low in coupling and high in cohesion语句时遇到问题。我已经在谷歌上搜索和阅读了很多关于这方面的内容,但仍然觉得很难理解。据我所知,High cohesion意味着我们应该有专门的类来执行特定的功能。希望这是正确的?比如信用卡验证类,它专门用来验证信用卡。
还是不明白低耦合是什么意思?