Search code examples
oopumlclass-diagram

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?


Solution

  • 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.