title: How to draw two references from one class to another in a UML class diagram?
body: <p>Imagine the following case: I have a class Method and a class DataType. A method has one return type (if we count void as a return type) and zero to many parameters. Both the return type and the parameters are instances of the class DataType.</p>
  
  <p>How would I model this Situation in a UML class diagram? One line for two references or one for each?</p>
  
  <p><strong>Solution A, one line:</strong>
  <a href="https://i.stack.imgur.com/LtUdc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LtUdc.png" alt="Solution A: one line"></a></p>
  
  <p><strong>Solution B, two lines:</strong>
  <a href="https://i.stack.imgur.com/4FlOu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4FlOu.png" alt="Solution B: two lines"></a></p>