I'm building an application that allows the user to create a Human model (graphical model). Basically I'm trying to form a relationship in my UML diagram as follows:
A Human HAS many Body Parts > Legs, Arms, head etc ARE(is a) body part(s).
How can I represent the Human has many body parts in the visual studio 2010 UML class designer?
I don't use VS but a literal rendition of your model would look something like this:
You may consider representing the Human-Body Part relationship as Composition:
A caution though: while the diagram models your example I would be wary of using it: I'd want to ensure there was a valid reason for creating the subtypes of Body Part. I.e. they have properties and/or behaviour that extends Body Part. Otherwise there's no need for the subtypes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With