What does the '#' symbol mean in a UML class diagram?

Uml

Uml Problem Overview


I was reading Algorithms in a Nutshell (O'Reilly) and came across this symbol in a class diagram. My guess is that it means the member is protected, but I wanted to see if anyone knows for sure what it means.

Uml Solutions


Solution 1 - Uml

It indicates a protected member of a class or other data type.

- Indicates private

+ Indicates public

# Indicates protected

Solution 2 - Uml

'#' indicates the visibility. In this case it refers to a protected operation [ edited out the term 'method' as this is not as generic ].

Solution 3 - Uml

Add also to :

~ Indicates package-private (or default)

Solution 4 - Uml

It implies that it is protected, for a variable it will only be seen in the class and inherited classes.

Solution 5 - Uml

'#' stands for visibility "protected" (similar to public,private ) behavior of the property/methods in the class . You can find more of the same at uml_basic_notations

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestiontroyalView Question on Stackoverflow
Solution 1 - UmlMike HoferView Answer on Stackoverflow
Solution 2 - UmlJaydenView Answer on Stackoverflow
Solution 3 - UmlVolodymyr MankivskyiView Answer on Stackoverflow
Solution 4 - Umlwilliam.eyidiView Answer on Stackoverflow
Solution 5 - UmlmatangView Answer on Stackoverflow