In the image above class B inherits class A. If B inherits all A's methods, shouldn't the arrow be from A to B? In my opinion it would make more sense if the arrow was from A to B.
Is there a reason that the direction of the arrow is this way and not the other way around? I would love to hear the explanation. Thank you.
EDIT: I know that this is the way that UML is designed, and that the diagram above is true according to the rules of UML, but my question is why UML made the arrow go this way .
The reason is that in your case B
references (or as you will calls out to) A
. There is no knowledge about B
in A
, so no arrow from A to B, but rather the other way around.
The UML entity diagram is not about who 'gets' what, but rather about who references/knows about who.
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