Assume class A
with methods M1
and M2
has low coupling with other classes
a) Should we also make sure that each individual method in class A
is not tightly coupled with any other method in the same class? Thus, should we make sure that changing code in A.M1
doesn't also require us to change code in A.M2
?
b) I assume if A.M1
is performing two closely related tasks T1 and T2 instead of just a single task, then T1 and T2 are tightly coupled, since changes in T1
may also require changes in T2
?
thank you