...
Wiki Markup |
---|
However, as a {{public}} data member, {{total}} can be altered by external code, independent of these actions. This noncompiantnoncompliant code example violates the condition that {{public}} classes must not expose data members by declaring them {{public}}. It is a bad practice to expose both mutable as well as immutable fields from a {{public}} class \[[Bloch 08|AA. Java References#Bloch 08]\]. |
...