LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 03-31-2006, 08:32 PM   #1
Fredstar
Member
 
Registered: Jul 2004
Location: Rochester, NY
Distribution: Fedora9::FreeBSD7.1
Posts: 296

Rep: Reputation: 30
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

Last edited by Fredstar; 03-31-2006 at 08:33 PM.
 
Old 03-31-2006, 09:11 PM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
# indicates a protected value.
 
Old 03-31-2006, 09:19 PM   #3
paulsm4
Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
UML visibility attributes:

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

Source:
UML Distilled, 3rd Edition; Martin Fowler
 
Old 03-31-2006, 10:00 PM   #4
Fredstar
Member
 
Registered: Jul 2004
Location: Rochester, NY
Distribution: Fedora9::FreeBSD7.1
Posts: 296

Original Poster
Rep: Reputation: 30
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
 
Old 03-31-2006, 10:06 PM   #5
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
This is a good page about UML representation of constants (among other things): http://ei.cs.vt.edu/~kafura/java/Cha...constants.html
 
Old 03-31-2006, 10:12 PM   #6
Fredstar
Member
 
Registered: Jul 2004
Location: Rochester, NY
Distribution: Fedora9::FreeBSD7.1
Posts: 296

Original Poster
Rep: Reputation: 30
Thank you

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What is UML? asahlot Linux - Software 1 10-28-2005 08:33 AM
UML / vserver xpucto Linux - Networking 1 09-28-2005 12:42 PM
floppy access in UML dypgrp Linux - Newbie 0 04-13-2005 02:25 AM
UML tool Mohsen Programming 2 05-31-2004 09:44 AM
Uml DVation Slackware 0 11-22-2002 11:42 AM


All times are GMT -5. The time now is 07:11 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration