umlclass-diagrammagic-draw

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?


Solution

  • 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.