Aggregation

noun

say it: “ag-rih-GAY-shun” /ˌæɡrɪˈɡeɪʃən/

A has-a link where the whole holds parts that can live on without it, drawn with a hollow diamond at the whole's end.

What is Aggregation?

Aggregation is a looser "has-a" relationship where the parts can exist on their own. A Team has Players, but players still exist if the team breaks up.

public class Team
{
    public List<Player> Players { get; } = new(); // players are created elsewhere and added
}

In a sentence

  • “The rental and its bikes were an aggregation: the bikes were back on the rack when it ended.”

Level: Journeyman · More OOP terms at this level

Updated

In other subjects