LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   UML Help (https://www.linuxquestions.org/questions/programming-9/uml-help-430499/)

Fredstar 03-31-2006 08:32 PM

UML Help
 
+ = Public
- = Private
# = ?
~ = ?

I know one of those is a constant however, I’m just not sure which one.
*edit* My question

1 - What does # and ~ stand for.

thanks

Matir 03-31-2006 09:11 PM

# indicates a protected value.

paulsm4 03-31-2006 09:19 PM

UML visibility attributes:

+ (public)
- (private)
~ (package)
# (protected)

Source:
UML Distilled, 3rd Edition; Martin Fowler

Fredstar 03-31-2006 10:00 PM

Quote:

Originally Posted by paulsm4
UML visibility attributes:

+ (public)
- (private)
~ (package)
# (protected)

Source:
UML Distilled, 3rd Edition; Martin Fowler

# protected is the same thing as final? Is a constant a protected value?

Also if i was writing a UML chart for someone and i left something like this,


+ MY_DOB: int = 2183

Wouldnt that be assumed to be a constant since it is in all caps?

Thanks

Matir 03-31-2006 10:06 PM

This is a good page about UML representation of constants (among other things): http://ei.cs.vt.edu/~kafura/java/Cha...constants.html

Fredstar 03-31-2006 10:12 PM

Thank you
 
Thank you!! That site held a lot of information i was trying to find =D


All times are GMT -5. The time now is 01:21 AM.