How would I display the field
private static final int DAMAGE = 3;
in the UML Diagram?
Should it be shown as: - DAMAGE : 3 : int
?
For an UML representation of a Java project, it should be sufficient to write underlined caps, like…
Note that this representation uses a Java convention (constants written in capitals) to highlight it as final
instead of a UML annotation, which would be kind of more straight-forward UML, but is too long for my purposes.