Reputation: 5857
I am having an assignment to create a class diagram for a certain software. Now, I identified the important classes and linked them and they are fine.
The thing is that I am having two different classes associated with another same class, but with different access level. For instance, I am having Admin
and Clerk
classes associated with Video
class. The Clerk
will be able to only view, whilst Admin
is able to view and edit. Can I show this distinction in Class Diagram?
Upvotes: 5
Views: 694
Reputation: 6529
Yes, you can show this on a class diagram, if, in fact, the classes are part of the problem domain. If you are modeling these classes as part of the solution domain, then you should not. For more on this topic, please read the excellent article by Leon Starr, called How to Build Articulate Class Models and get Real Benefits from UML.
Upvotes: 1
Reputation: 1599
If Admin and Clerk are classes (and not actors), you cloud use something like GenMyModel http://app.genmymodel.com/engine/xaelis/accessLevel.jpg
Upvotes: 1