I have found a Java example about how students register in a set of courses:
Student-----takes------Courses
and in the example is defined as Association, but why it cannot be Aggregation? for what I see each class could exist independently. How do differentiate both?
In the above example I am dealing with the schema that a Student has an array of Courses as attribute, and Course has an array of Students within it also; so in that case is association because both of them are related, and aggregation because one is contained inside the other?