Re: UML-ish question



On 2006-03-22, jhinchey@xxxxxxxxxx <jhinchey@xxxxxxxxxx> wrote:

Is that legal UML? If so, what does it mean? I think they are trying
to show an association between two instances of the class, which I
don't think belongs on the class diagram.

No, not between two particular instances of the class, but just an
association of the class to itself, e.g. a parent/child relation.

e.g. the following class would lead to such a UML:

class X {
X parent;
Collection<X> children;
}
.