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

前端 未结 16 1785
粉色の甜心
粉色の甜心 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 09:06

    Loose Coupling is the process of giving the dependency your class needs indirectly without providing all the information of the dependency(i.e in the from of interface) in case tight coupling you directly give in the dependency which is not good way of coding.

提交回复
热议问题