Search code examples
umlclass-diagramrelationships

reading the association relationship


I read the illustrated relationship as:Class A associated with class B

So,what is the meaning of :

1) +class B at the end of association

2)0..1

Now,how can I read the relationship?


Solution

  • completely agree with @Wolfgang Fahl and @Idan Arye

    Here some elaboration

    1)your question touches the Association ends and in your case the

    visibility (+)followed by role-name(class B)

    An association end specifies the role that the object at one end of a relationship performs. Each end of a relationship has properties that specify the role of the association end, its multiplicity, visibility, navigability, and constraints.

    2)to be more involved,look at the following class diagram:

    enter image description here

    customer may have many reservation

    but each reservation owns by one customer

    Hope this help you