Translating basic UML diagram into Java code?
Source: https://youtu.be/oOCEAjlBTZw?list=PLdQddgMBv5zHcEN9RrhADq3CBColhY2hl&t=3688
I am learning about UML Class Diagram, and it has something called an
Association Class
- the example being Supplies
here.
Also Supplier
and Product
are both classes that can have 0..N
of each other: A Supplier
class can have 0...N
of Product
class, and vice versa.
I am currently wondering:
* How an Assocation Class
can be translated into code, and how it differs from a normal class?
* How can I translate the 0..N
requirement between Supplier
class and Product
class into code? What does it mean in code? Normally I just have two Java files each with their own class, and then I can create them in the main file. But it seems that they must somehow depend on each other?3 Replies
⌛
This post has been reserved for your question.
Hey @Steadhaven! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.