Multiple choice technology web technology

Aggregation (encapsulation) relationships are represented in the UML notation by

  1. nesting of classes

  2. lines with a solid diamond at one end

  3. lines with a hollow diamond at one end

  4. lines with an arrow at one end

  5. lines without an arrow at either end

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Aggregation in UML is represented by a line with a hollow diamond at the container end. The hollow diamond distinguishes aggregation (has-a relationship) from composition (solid diamond) and simple association (no diamond). Aggregation implies a whole-part relationship where the parts can exist independently.