On this webpage which shows how to draw a class diagram, why is the arrow for association pointing from order to customer, and not from customer to order?
UML Tutorial - Class Diagrams
In my diagrams (and in UML in general) the arrow heads point in the direction of source code dependencies, not data or control flow.
The UML class diagram maps out the object's attributes, operations, and how they relate. The arrows that connect classes show important relationships. The arrows denote association, inheritance, aggregation, composition, dependency, and realization among others.
A directed association indicates that control flows from one classifier to another; for example an actor to a use case. This flow of control means that only one of the association ends specifies navigability. If you use association end names, you do not typically need to name an association.
Association can be represented by a line between these classes with an arrow indicating the navigation direction. In case an arrow is on both sides, the association is known as a bidirectional association. We can also indicate the behavior of an object in an association (i.e., the role of an object) using role names.
The arrows describe navigability.
Taken from: http://www.uml-diagrams.org/association.html
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