What is the difference between loose coupling and tight coupling in the object oriented paradigm?

前端 未结 16 2010
粉色の甜心
粉色の甜心 2020-11-22 08:03

Can any one describe the exact difference between loose coupling and tight coupling in Object oriented paradigm?

16条回答
  •  庸人自扰
    2020-11-22 08:56

    Loose coupling is and answer to to old style hardcoded dependencies and related issues issues like frequent recompilation when anything changes and code reuse. It stresses on implementing the worker logic in components and avoiding solution specific wire up code there.

    Loose Coupling = IoC See this for easier explanation.

提交回复
热议问题