Class Diagram: Attributes and Operations

Visual Paradigm for UML 8.0 Enterprise Edition

Hello everyone

  1. In the design class diagrams to define the attributes (and Operations) must be set the value of Type Modifier with one of the following options: &, *, []. What each of these values mean?

  2. In the definition of Operations, why Lower and Upper is used?

Thank you very much from now

Hi, I am also interested in getting an answer to this questions. Please.

Hi fi12291,

Thank you for your question. * indicates that an attribute can have multiple instances. [ ] is used to represent an array.

The use of lower or upper case in naming attribute/operation usually depends on the naming convention of the programming language you use or the naming guidelines defined by your team. We do have syntax checking to ensure the correctness of attributes and operations but the use of upper and lower case is not included in the checking.

Best regards,
Jick Yeung

Type Modifier *, does it not mean point?
Type Modifier &, does it not mean address?

there is a special Multiplicity in the window~

Hi Trypsin,

Thank you for your post. I have relayed your message to our team to study. When there is a reply, I will post again.

Best regards,
Jick Yeung

Hi Trypsin,

*, &, [] are some default modifier provided that is meaningful to certain languages like C++, it can be entered anything specific to the language or modeling purpose, e.g. [][] for a two dimensional array.

Best regards,
Jick Yeung

yes, this is exactly what I understand the *, & and [ ] symble

Yes, and you can enter your own modifier, too. :slight_smile: