Menu

#10 Association not drawn

open
nobody
5
2003-12-19
2003-12-19
No

In class A, I have this member variable declaration:

protected B[] sample = null;

It seems to me that this should set up an aggregate
association between A and B: class A "has a" B.

No association is shown.

If I change the code to:

protected B sample[] = null;

the association is displayed. I think this is valid
Java, but the former is the preferred form for
declaring array references.

Discussion


Log in to post a comment.