how do I add a final variable to class diagram

前端 未结 3 1775
独厮守ぢ
独厮守ぢ 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:20

    Declaring a variable/attribute final is implementation detail. So you don't need to specify it in your CLASS Diagram but you can follow the convention as suggested by eboix.

    UML specification doesn't say anything specifically about it; so you can follow convention of showing it in ALL CAPS.

提交回复
热议问题