May 2010
Intermediate to advanced
1272 pages
61h 18m
English
The grouping concept is something that you of course already know if you ever worked with data. Given a products collection, it would be useful dividing products into categories to provide a better organization of information. For example, consider the following Category class:

Now consider the following review of the Product class, with a new CategoryID property:

At this point we can write code that creates instances of both classes and populates appropriate collections, as in the following snippet:
To make things easier to ...
Read now
Unlock full access