• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Many-to-Many multiplicity relationship in class diagram

 
Riyaz Enayath
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Following are the possibilities of object A association with B and C having many-to-many relationships in the attached diagram.

A[1 - 0.*]--->B[0.* - 1.*]-->C

1. A can directly associate with B and also could associates with C without the existence of B.

2. C can be exist without the object B.

Please comment on the understanding of association relationship is correct or not.


-regards.
Diagram.jpg
[Thumbnail for Diagram.jpg]
Diagram
 
Ashu Sharma
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is What i understand

1) A does not know anything about C
2)No C can't exist without B.

Talking in terms of implementation it will be

class b{

new C()

}

so if B is not there there is no way C can exist
 
Bigwood Liu
Ranch Hand
Posts: 240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ashu Sharma wrote:This is What i understand

1) A does not know anything about C
2)No C can't exist without B.

Talking in terms of implementation it will be

class b{

new C()

}

so if B is not there there is no way C can exist

1) A does not know anything about C

I agree, A can only access C by using B

2)No C can't exist without B.

B(0-*)-->C(1-*) I think means C can exist without the existing of B, but I also think this expression is not accurate:how come B0-->C1 and at the same time no one else is referencing C, if B is zero(not exist), where will C exists (C1-*)?



 
Riyaz Enayath
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank You Ashu and Bigwood Liu.

Finally, the diagram convey something "C can exist without B somehow.."


Regards
Riyaz
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic