posted 17 years ago
You can have many objects of the same class in a sequence diagram.
You shouldn't be able to to have different objects with the same name, I'm not sure if the UML specification allows it, but it will be very confusing!
Supose you have o1 of class C1 and o2 of class C2
Instead of
<br /> <br /> <br /> you'll have:<br />
In the first diagram o1 send a message to o2 and o2 sends a message back.
In the second diagram, to what object o2 is sending the message? if the first and last objects are the same, why it appears twice? if they're different, why they have the same name?
Maybe there's a special occation in which can be useful, but I can't think any example...