0

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?

Joe
  • 25
  • 4
  • What do you mean by empty array. An array that can be empty or one that is always empty? – Ister Jan 05 '17 at 20:22
  • @Ister I declared an array like this `Integer [] ids; ` . This array is initialized later with random size so I don't know what to write in the brackets in the class diagram. Answering to your question, the one that can be empty, I guess . – Joe Jan 05 '17 at 20:37

1 Answers1

2

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.

qwerty_so
  • 35,448
  • 8
  • 62
  • 86