Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

When laying down associations, why is the triangle of a generalization at the receiving end while the diamond of an aggregation is at the source end?

0
Posted

When laying down associations, why is the triangle of a generalization at the receiving end while the diamond of an aggregation is at the source end?

0

The diamond of an aggregation should be viewed as the base or origin (not the ‘head’) of the relationship. Conversely, the open arrow of the generalization does indicate the head of the relationship. Further, the owning class of the aggregation knows about its aggregates and therefore it follows that this is the origin of the relationship. With the generalization, it is the subclass that knows about the superclass. The superclass should know nothing about the subclass. Here it follows that the origin of the relationship should emanate from the subclass. This is consistent with most other CASE tools on the market.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123