What does 'low in coupling and high in cohesion' mean

前端 未结 14 553
粉色の甜心
粉色の甜心 2020-11-30 16:18

I have problems understanding the statement low in coupling and high in cohesion. I have googled and read a lot about this, but still finding it hard to underst

14条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-30 16:48

    Short and clear answer

    • High cohesion: Elements within one class/module should functionally belong together and do one particular thing.
    • Loose coupling: Among different classes/modules should be minimal dependency.

提交回复
热议问题