151k views
5 votes
What are the Java counterpart to UML attributes.

User Lassana
by
6.4k points

1 Answer

3 votes
The Java counterpart to UML attributes are member variables and related accessor operations. The attributes identified in the class will be generated as member variables which can be private, public or protected.
The generation process can also generate the necessary accessor operations. Examples: get and set operations.
User Jakob Gade
by
6.1k points