how do I add a final variable to class diagram
问题 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 class diagram? 回答1: Constant (i.e. final) fields are indicated via naming convention: constants should be in ALL_CAPS Source 回答2: There are different notions of final that are all represented in different ways: final definition , i.e. it cannot be overridden in sub-classes - this corresponds to the isLeaf property of