« Debugging Tips | Main | Starbucks and Two-Phase Commit »
October 30, 2006
Store Objects, not IDs
In these assignments, you should be storing Objects, not IDs of objects. Your pet object should have a variable of type Owner, not a variable of type int to store a reference to your owner. Your cart should store Pets, not PetIDs.
If you have already completed work storing IDs and need help making the conversion, please come see me for help. The code required to store objects is actually much easier, and the next few labs will flow much smoother if your objects are constructed properly.
Posted by sam at October 30, 2006 03:25 PM
