What does the β€œ#” symbol in a UML class diagram mean?

I read the Algorithms in a nutshell (O'Reilly) and came across this symbol in the class diagram. I suppose this means the element is protected, but I wanted to know if anyone knows what this means.

+50
uml
Jan 6 '09 at 21:46
source share
5 answers

Indicates a protected member of a class or other data type.

- Indicates closed

+ Indicates publicly available

# Indicates protected

+112
Jan 06 '09 at 21:50
source share

'#' indicates visibility. In this case, this refers to a protected operation [the term β€œmethod” has been edited, since this is not general).

+7
Jan 6 '09 at 21:49
source share

This means that it is protected; for a variable, it will be displayed only in the class and inherited classes.

+3
Jul 26 '14 at 17:20
source share

Add also:

~ Indicates package-private (or default)

+3
May 24 '17 at 9:51
source share

'#' means the visibility of the β€œprotected” (similar to public, private) behavior of the property / methods in the class. You can find more of the same at uml_basic_notations

+2
Aug 25 '15 at 8:21
source share



All Articles