How do you express something like static final in UML?

Asked 2 years ago, Updated 2 years ago, 80 views

Since I've been working on my own project through Android practice, There are more methods and constant variables in the class, so it's hard to manage I'm going to draw UML

UMLet successfully installed.

For public, + private is - I understand this

The static variable (method) or How do you express things like final and static final?

There's something like tilting at the umlet or making it thick, and you're expressing it with this?

I could choose and use it, but... I want to draw it in a common way, so post a question!

uml

2022-09-21 17:00

1 Answers

Note: http://pages.cs.wisc.edu/~hasti/cs302/examples/UMLdiagram.html

Class functions or members (for example, static in Java) are underlined.

Class (i.e. static) methods and fields are indicated by underlining

The constant (e.g. final in Java) capitalizes all letters according to the naming convention. - Take a look at Naming Convention for this part. For Java, the constants are not CamelCase, they are all capitalized, and words and words are separated by an underbar (_).

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

Slope body is used to refer to abstract concepts (e.g., Java abstracts). For Java, you can display the interface, for abstract classes, display the class name as slope, and for abstract functions, use the function notation as slope.


2022-09-21 17:00

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.