I am studying Mark Cade's class diagram for Golf Equipment Store (page169).
Some of the association seems wrong to me, please help!!
1. Address --> Customer
I would think the arrow should point from customer to Addrss, since customer class should contain (knows about) address, not the other way around. Similarly, the credit card and Order's relationship to customer seems wrong too. (CreditCard * --->1 Customer)
2. Order ---LineItem
In the book, this is a bidirection association. But in real life, shouldn't it be unidirection? Order should be able to query about LineItem, LineItem should not be able to query Order?
Is it possible Mark Cade's class diagram is wrong or I misunderstand it completely?
Thank you for your help in advance!!