A view makes visible selected classes and
features (properties and methods) for reporting.
You will create a view for the ErewhonInvestments model
to report on a collection of retail sales.
The logical class to start with is the RetailSale class and its superclass Sale.
The superclass is included so that features can be inherited.
A RetailSale object knows the RetailSaleItem that was sold
and the Client who bought it. The RetailSaleItem knows the Agent
who offered it for sale.
These related classes and their superclasses should be included in the view. |