Question: Loose coupling means that the classes are mostly independent. If the only knowledge that class A has about B, is what class B has exposed
Loose coupling means that the classes are mostly independent. If the only knowledge that class A has about B, is what class B has exposed through its interface than that is considered loosely coupling (Geeks for geeks, 2020). A real life process or activity that exemplifies loose coupling would be a smart watch. For the most part, a smart watch and its users are both independent. Regardless of who the user is, the smart watch still performs its duties of telling time and alerting you every hour or so to breathe. The user is independent and also perform its own activities. It is loose coupling because you can change the user, but the performance of the watch is still the same. If you change the watch to another smart watch, the user will still behave the way it would, with or without the watch.
When possible, look for ways that this post may be more tightly coupled to the activities they selected than they realize, and identify these overlooked dependencies.
Step by Step Solution
3.47 Rating (144 Votes )
There are 3 Steps involved in it
While the analogy of a smartwatch and its user as an example of loose coupling is apt on the surface ... View full answer
Get step-by-step solutions from verified subject matter experts
