ME-Q51. Which option defines loosely coupled classes? (Choose the best option.)
Explanation: Option (a) is incorrect because these classes aren’t related.
Option (b) is incorrect because class Pen directly accesses the instance variable
color of class Ink, making them tightly coupled classes. Tightly coupled classes are
difficult to change. Option (d) doesn’t compile.
my question about answer a, classes that aren`t related is not considered as loosely coupled? they not use api of each other. is relationship like usage of one class by other is mandatory in questions of coupling?
For choice A, the classes aren't coupled at all because they don't reference each other in either direction. It doesn't make sense to talk about loose vs tight coupling when there isn't any coupling at all. Hence no coupling.