Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What defines an object diagram's compliance with class diagram #185

Open
larrylawl opened this issue Nov 20, 2019 · 2 comments
Open

What defines an object diagram's compliance with class diagram #185

larrylawl opened this issue Nov 20, 2019 · 2 comments

Comments

@larrylawl
Copy link

(Lecture 3 Post Lecture Quiz, Q19)
I understand the given reason. However, isn't there a missing association between Student and Admin objects? My larger question is: what defines an object diagram's compliance with class diagram.

Screenshot 2019-11-20 at 8 55 50 AM

@damithc
Copy link
Collaborator

damithc commented Nov 21, 2019

As the class diagram does not specify multiplicities, we can't say that there must be an association between Admin and Student objects.
An OD is compliant with a CD as long as the OD could be an instance of the CD (i.e., it is an object structure that could have been resulted from a system that implements the CD). In other words, the OD does not violate any part of the CD.

@larrylawl
Copy link
Author

Got it, thanks prof!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants