nus-cs2103-AY2122S1 / forum

18 stars 2 forks source link

Question about Class Diagram dependency #452

Closed kevinchua6 closed 3 years ago

kevinchua6 commented 3 years ago

image Referencing the above diagram, if the Model interface has a dependency to the Urgency Enumeration, shouldn't ModelManager also have a dependency to Urgency because ModelManager implements Model?

damithc commented 3 years ago

Referencing the above diagram, if the Model interface has a dependency to the Urgency Enumeration, shouldn't ModelManager also have a dependency to Urgency because ModelManager implements Model?

Not necessarily, the Urgency might not appear in any of the method signatures of Model (e.g., it could be a constant defined in Model). Plus, we only show what we think is important to the purpose of the diagram. It doesn't have to show every dependency.

kevinchua6 commented 3 years ago

Ah I see! Thanks Prof @damithc!