An UML diagram has a rectangle representing class A is connected by a solid line and a solid (dark) diamond near class A from class B.
In
Java implementation
a.Class B will have a reference to Class A
b.Class A will have a reference to Class B
c.Class B has an aggregation relationship with Class A
d.Class A has an composition relationship with Class B
They say answer a is the correct one, but I think that also d is correct.
What do you think?