public class Customer{
private int customerID;
private String customerFirstName;
private String customerLastName;
private CustomerAccount customerAccount;
}
A CheckingAccount has-zero-or-more BankAccount(s)
FALSE therefore not aggregation
Campbell Ritchie wrote:Yes,, but I can see a problem. You are risking a collision of keys every 1001 new accounts (or worse).