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.
+1
A:
'#' indicates the visibility. In this case it refers to a protected operation [ edited out the term 'method' as this is not as generic ].
Jayden
2009-01-06 21:49:35
PS: The reference to look this up is UML 2.0 In A Nutshell. A desktop quick reference. Dan Pilone, Niel Pitman. O'Reilly.
Jayden
2009-01-06 21:51:34
Oh yes, my terminology isn't accurate. A bit sloppy. The below post by Mike Hofer uses the term 'protected member'. I think if you want to be completely accurate / agnostic, you could say a 'protected operation'.
Jayden
2009-01-06 21:53:35
Wasn't trying to be snarky, and I apologize if it seemed I was. Truth is, the symbol can be applied to attributes as well as operations, so its scope is a bit broader, and I wanted to be sure that was clear. Again, my apologies for seeming crass: it was not my intent.
Mike Hofer
2009-01-06 21:59:43
No worries. Didn't think you were. :) Cheers
Jayden
2009-01-06 22:18:49
+5
A:
It indicates a protected member of a class or other data type.
-
Indicates private
+
Indicates public
#
Indicates protected
Mike Hofer
2009-01-06 21:50:21