I often get questions when I teach object-oriented programming about the difference between aggregation and composition. These are two relationships that are easy to confuse.
Aggregation in the UML class diagram is represented by an open diamond whereas composition is represented as a closed or filled-in diamond. Related to this is the "uses" or "depends on" symbol which is indicated by an arrow. A closed arrow represents inheritance.
from DZone.com Feed https://ift.tt/2lBL5xh
No comments:
Post a Comment