Sabuncu (34) [Avatar] Offline
#1
In Chapter 1, page 5, the first bullet item in the lower half of the page says:

We could’ve accidentally added a string to the list created in GetSampleProducts and the compiler wouldn’t have batted an eyelid.

I don't think the above sentence does a good job of underscoring how the ArrayList can be misused, since the Product definition also contains a string as one of its properties. Maybe something like the following would have been better:

We could’ve accidentally added a simple string instead of a Product instance to the list created in GetSampleProducts and the compiler wouldn’t have batted an eyelid.

Thanks -

Todd