Question

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?

Was it helpful?

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

OTHER TIPS

2) - for each instance of A there can be 0 or 1 instances of B associated with it.

the + denotes the visibility of the role. "+" is public. private would be shown as "-". The name of the role is classB which is the name of the class the role belongs to in lower case.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top