tags:

views:

627

answers:

2

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
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
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
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
No worries. Didn't think you were. :) Cheers
Jayden
+5  A: 

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

- Indicates private

+ Indicates public

# Indicates protected

Mike Hofer
Yes, or protected 'operation'.
Jayden
The visibility indicator can apply to association ends as well as attributes and operations.
chimp