How to define empty array in UML class diagram?

1.4k views Asked by At

While learning how to create UML class diagram using MagicDraw, I want to represent array variable Integer [] ids;

I tried ~ids : Integer [], but got an error. I suppose I have to specify the size of the array in the brackets. How to specify an empty array properly?

1

There are 1 answers

0
qwerty_so On BEST ANSWER

You would probably do it like this:

enter image description here

Just with an empty array as default. I have to confess that I don't know how to technically achieve that with MagicDraw.