Ghasan غسان
Ghasan غسان

Reputation: 5857

Showing Access Level in Class Diagram

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

Answers (2)

Jim L.
Jim L.

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

Xaelis
Xaelis

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

Related Questions