1.

What is the difference between cohesion and coupling?

Answer»
CohesionCoupling
Cohesion refers to the relationship within modules.Coupling refers to the relationship between modules.
Increasing cohesion is good for the software.Coupling should be avoided.
Modules focus on a particular thing in cohesion.Modules are coupled to one ANOTHER through coupling.
Example: A function that checks file permission and then opens it, or a function to decrypt messages.Example: TWO MODELS sharing data with each other.


Discussion

No Comment Found