Hi,
In SCJP Sun Certified Programmer for Java 6 Study Guide by Katherine Sierra and Bert Bates (K&B):
Coupling refers to the degree to which one class uses members of another class
So it means, more than one classes are involved in coupling.
In SCJP Sun Certified Programmer for Java 6 Study Guide by Katherine Sierra and Bert Bates (K&B):
Loose coupling is the desirable state of having classes that are well encapsulated, minimize references to each other and limit the breadth of API usage.
So it means encapsulation plays a major role in loose coupling, It must be well encapsulated( protected instance vaiables using private modifier)
Upto here, I think, I might be right. But I do not undstand the two other requirements for loose coupling.
The first one is
"minimize references to each other"
The second one is
"limit the breadth of API usage"
Could you please explains these ones.....
Thanks
Matloob