-So let's start with the dependency example. A dependency, - -2
-as we said, expresses the relationship between a supplier - -3
-and a client that relies on it. There is - -4
-a dependency because changes in the supplier can affect the - -5
-client. Here in this example I am showing that - -6
-a dependency example involving the registration manager and the - -7
-scheduling algorithm. As you can see the, the dependency - -8
-is indicated with a dashed line pointing from the client - -9
-to the supplier. And here it's pretty clear why - -10
-the RegistrationManager is dependent on the Scheduling Algorithm. It's - -11
-because the RegistrationManager uses this Scheduling Algorithm. And therefore, - -12
-if the Scheduling Algorithm changes, the RegistrationManager might be - -13
-affected by that change. Another less obvious example is - -14
-the dependency between the Registration Manager and the Student. - -15
-In this case, because the Registration Manager gets a - -16
-Student object as a parameter here there is a dependency - -17
-between the two. Again, if the Student class were to change the Registration - -18
-Manager might be affected because it's relying on the Student for it's behavior. -- cgit 1.4.1