Why is tightly coupled bad but strongly typed good?

后端 未结 9 521
日久生厌
日久生厌 2021-02-04 13:30

I am struggling to see the real-world benefits of loosely coupled code. Why spend so much effort making something flexible to work with a variety of other objects? If you know w

9条回答
  •  别跟我提以往
    2021-02-04 13:40

    If any modification done in our function, which is in a derived class, will change the code in the base abstract class, then this shows the full dependency and it means this is tight coupled.

    If we don't write or recompile the code again then it showes the less dependency, hence it is loose coupled.

提交回复
热议问题