nus-cs2113-AY2324S2 / forum

2 stars 0 forks source link

Questions regarding Association and Navigability #48

Closed ZMinghuiZ closed 1 month ago

ZMinghuiZ commented 1 month ago
  1. Does anyone know that the association line with no directed arrow means no navigability between the linked classes or the navigabilities are not specified?

    image
  2. Is there any code examples of two classes that linked with association but they do not have navigability of each other?

    image

Thank you.

okkhoy commented 1 month ago

No arrows mean you don't know (not specified). You encounter this situation in the design phase. Once you have the code, you know which class holds the reference of the other (i.e., navigability).

ZMinghuiZ commented 1 month ago

Okay, thank you Prof!