title: attribute having multiple types in class diagram
body: <p>In UML class diagram, is it possible to represent an attribute that can have  multiple types? For example, MyClass has an attribute named MyAttribute. How can I specify in class diagram that MyAttribute can assume float or string type value? An alternate option is to write <code>MyAttribute:</code> (<a href="https://docs.microsoft.com/en-us/visualstudio/modeling/uml-class-diagrams-guidelines?view=vs-2015" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/visualstudio/modeling/uml-class-diagrams-guidelines?view=vs-2015</a>), i.e. not specifying the type, but not specifying the type may create problems if people start to use their own <em>types</em>.</p>
  
  <p>Thanks in advance.</p>