Digital learnings and other such nonsense…
Posts tagged object oriented
Coupling and Cohesion, what you need to know for SCJP…
0631 days
Coupling and cohesion are two terms that often get mixed up, however they are actually really simple concepts, and the bonus is, they don’t just apply to Java.
Coupling
Coupling, in its purest terms, means “the degree to which one class knows about another class”. If one class uses another class, that is coupling. Coupling is everywhere, but the level of coupling varies.
Consider the following example of a tightly coupled set of classes:

