nus-cs2103-AY2021S1 / forum

20 stars 2 forks source link

Practice Paper Part 2 Dependency in Class Diagram #526

Closed Nikhilalalalala closed 3 years ago

Nikhilalalalala commented 3 years ago

Hi, this is regarding practice paper part 2 on drawing the UML diagrams.

I was wondering if there is a dependency between Activity and Watcher as the watch method is taking in a parameter of type Watcher, hence was wondering if the additional line should be drawn as below: image

The question is below for your reference: image

GeNiaaz commented 3 years ago

Hi, you can check out the video explanation in the videos on Week 8 topics

Joven-Heng commented 3 years ago

Believe since there is an association, it is stronger than a dependency. So you wouldnt need to write it. From what the person above said, its likely in week 8 Action Task History video (he didnt really explain it specifically but theres a similar example)

damithc commented 3 years ago

Also relevant https://github.com/nus-cs2103-AY2021S1/forum/issues/480

Nikhilalalalala commented 3 years ago

I see, okay thank you all for the guidance, got it!