Joe
Joe

Reputation: 25

How to define empty array in UML class diagram?

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?

Upvotes: 0

Views: 1495

Answers (1)

qwerty_so
qwerty_so

Reputation: 36305

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.

Upvotes: 2

Related Questions