how do I add a final variable to class diagram

前端 未结 3 1786
独厮守ぢ
独厮守ぢ 2021-02-13 17:43

I am designing a class diagram for scrabble game. In one of the classes, I have final variable declared. Can anybody tell me, how can I indicate a variable as final in the UML c

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-13 18:19

    Constant (i.e. final) fields are indicated via naming convention: constants should be in ALL_CAPS

    Source

提交回复
热议问题