Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show "Protected Internal" in UML?

Tags:

c#

.net

uml

I am new to UML. I have found these symbols for showing different access modifiers in UML:

  • + is for Public
  • - is for Private
  • # is for Protected
  • ~ is for Internal

But in the reference that I consulted, there is no symbol for "Protected Internal."

Would the compound symbol #~ be appropriate?

like image 701
Vaibhav Jain Avatar asked Aug 08 '10 10:08

Vaibhav Jain


2 Answers

Unfortunately, there isn't a symbol (or combination of symbols) that means "Protected Internal." That is because the internal keyword is specific to C#, whereas UML was developed as a universal markup language. However, you can come to an agreement for using a particular symbol within your company.

like image 106
Boris Modylevsky Avatar answered Nov 03 '22 22:11

Boris Modylevsky


Not a beautiful solution, but you could also (ab)use a stereotype for it which you'd apply to the attributes/methods.

like image 41
sunside Avatar answered Nov 03 '22 21:11

sunside