Here I have this class diagram:
Here are the things that I don't understand:
- Why is
Order-OrderDetailan aggregation? Shouldn't it just be an association, since it will have aList<OrderDetail>like:
public Order{
public DateTime date;
public Status status;
public List<OrderDetail> orderDetails;
}
- Why is
OrderDetail-Itema dependency? Shouldn't it be association since it has a reference to thatItemclass?
Reference for the diagram: http://sslabmcs12.weebly.com/resources1.html
