what is meant by Loose coupling and its problem?
Printable View
what is meant by Loose coupling and its problem?
Here is a good article from the MSDN:
http://msdn.microsoft.com/en-us/magazine/cc337885.aspx
It may help shed some light on loose coupling.
Thanks.
Loose coupling is the SOLUTION to a series of problems, the looser the better.
Tight coupling, basically means something made up of ttwo or more parts, where the parts can NOT be used individually.
Driver is tightly to Car, and can not be used without it.Code:class Driver
{
public Car ar;
}
class Car
{
}
I would say that what you are talking about is a difference between association and aggregation. As I understood loose coupling vs. tight coupling, it is about a knowleadge of specific type of associated object, so the client rely on the specifict type (tight) rather that on its contract (loose).