28.1.3 Implementing One-to-Many Relationships
Each invoice linked to exactly one customer
An invoice has many items
In C++,
Item
s stored in container:
class Invoice { ... private: Customer* cust; vector<Item> items; double payment; };
prev
|
top
|
next