Link objects as fields in UML diagram

Posted by fearofawhackplanet on Stack Overflow See other posts from Stack Overflow or by fearofawhackplanet
Published on 2010-04-12T15:39:29Z Indexed on 2010/04/12 15:43 UTC
Read the original article Hit count: 288

I'm trying to generate a diagram for a design document. I've generated a class diagram in VS. At the moment it's just a bunch of unconnected boxes as there isn't any inheritance going on. It feels like it would be more useful if I could show how the objects interact through properties and parameters.

As an example, a Boy class has a method Kiss which takes a Girl object. How can I show that Boy and Girl interact by connecting this in the diagram?

Is there a notation for this in UML? Or is there another type of diagram that shows this? Can I make VS draw this connection for me somehow? Or is this a silly/useless idea?

It just doesn't feel like a proper diagram unless it's got some lines on it somewhere :)

© Stack Overflow or respective owner

Related posts about documentation

Related posts about uml