What is more correct class name or object name in UML sequence diagram?

Posted by atch on Stack Overflow See other posts from Stack Overflow or by atch
Published on 2010-04-07T17:33:00Z Indexed on 2010/04/07 17:43 UTC
Read the original article Hit count: 257

Filed under:
|

I was just wondering if it is more correctly to as a label of objects in UML sequence diagram instead of object name (which is irrelevant in my opinion and less informative than class name) provide class name. Another thing, while returning information instead of listing all objects names would it be a better solution to just write collection;

Diagram with object names: alt text

Diagram with class names: alt text

As it's clearly visible from the second diagram that it is much more informative than the first one, and I think it is more practical.

© Stack Overflow or respective owner

Related posts about uml

Related posts about sequence-diagram