hi; i have to class. one has a string member that is a unique id of the other (not a reference to the other) . should this be modeled has an association? thanks.
posted 13 years ago
I think what you have here is a qualified association. The unique ID tells you specific information about which object is associated with the other object. That seems to be commonly represented in UML with a square between the class rectangle and the association line. An aggregration is just a strong form of association, whereby one object is part of another. That might also be a possibility in this case, depending on the relationship between your two classes.
SCJP, SCWCD, SCBCD
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads