Open nus-pe-bot opened 11 months ago
Yes, that is correct! When a FileManager
object is initialized, it takes a Ui
object such that the FileManager
is the whole and Ui
is the part in the whole-part relationship as shown in the code below.
Therefore, when the FileManager
object is deleted, the Ui
object that was a 'part' of the FileManager
object will be deleted as well.
However, I am unclear about your issue, are you trying to report that it is wrong or are you just clarifying the composition relationship between FileManager
and Ui
?
--
Note from the teaching team: This bug was reported during the Part II (Evaluating Documents) stage of the PE. You may reject this bug if it is not related to the quality of documentation.
Does this composition releationship mean, file manager and Ui are whole and part relationship?
[original: nus-cs2113-AY2324S1/pe-interim#1013] [original labels: severity.Medium type.DocumentationBug]