C
C#16mo ago
Ashy

❔ How to create a UML diagram to map out a 2d array's data structure and attributes

Hello, I have no idea how to do this. We are supposed to be building a winforms application using specific program requirements (the array needs to be 12 rows and 4 columns) but I genuinely don't know how to do this here is the original question. As well as an image for the project requirements as labeled Create a simple UML Class Diagram for the 2D wiki data structure information. Ensure you have added the data structure and attributes.
2 Replies
Florian Voß
Florian Voß16mo ago
so the correct way to represent any type of collection in a UML class diagramm is books: * of Book. Remember UML is not allowed to be language specific, so it doesn't know what array, list, stack, queue etc. is. TBH I don't know how to represent 2D array, possibly my2DArray: * of * of SomeType? I genuinely don't know 😄 ah no actually the right way is this according to chat gpt and it makes sense:
my2DArray: * of InnerCollection
InnerCollection: * of SomeType
my2DArray: * of InnerCollection
InnerCollection: * of SomeType
Accord
Accord16mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server