0

So I have seen this question: In Java, difference between default, public, protected, and private and decided to use no modifier in my domain model (MVC), but I cannot understand how do I put them in the domain model diagram?

According to Wikipedia:

"+"       Public 
"-"       Private 
"#"       Protected 
"/"       Derived (can be combined with one of the others)
"_"       Static

But I do not see what shall I use for a field I do not put a modifier?

Community
  • 1
  • 1
Nikola
  • 2,093
  • 3
  • 22
  • 43

1 Answers1

1

I believe '~' is the choice for default modifier.

'~' : for package visibility

Here are the references:

http://www.ibm.com/developerworks/rational/library/content/RationalEdge/sep04/bell/

http://publib.boulder.ibm.com/infocenter/rsdvhelp/v6r0m1/index.jsp?topic=%2Fcom.ibm.xtools.viz.java.doc%2Ftopics%2Fcvisibility.html

Juned Ahsan
  • 67,789
  • 12
  • 98
  • 136
  • Do you have any source where you have seen that? I guess that is correct so I have accepted your answer, but I would like to read more as all the websites I have seen didn't mention that – Nikola Jun 02 '13 at 23:23
  • @Nikola Added to the resolution – Juned Ahsan Jun 03 '13 at 00:28