Closed richardcom closed 3 years ago
Good catch. In this question, the object diagram will have to be considered 'partial' (we can't add an owner because we have not been told who the owner is). Although not required (i.e., not required with respect to grading), you can add a Repeatable
object as the owner. Yes, an interface can be used as the type of an object if we don't care to show the actual concrete type.
Thanks a lot Prof! Thus, does it mean that we can also draw abstract class / interface object in the Object diagram as well?
Dear Prof and TAs, in one of the exercises, we were asked to draw the object diagram. However, as shown from the question and previous class diagram,
Task
must have oneRepeatable owner
. Though we cannot show interface or abstract class concepts in object diagram, I wonder shall we useActionX
or other concrete class Actions as a owner here or is it okay to neglect the interface attributeRepeatable owner
even though the multiplicity is 1.