why not.

gemlan (gem)
first of all, I am a green hand, I just want to learn something.
1. why can not use the hashtable? you can create a user object whose properties is map the information of this user. use this object as the key. then, you can have another object which extends the vector , use this one as the container of the items. Can you?
2. of course to let shopping cart extends hashtable is not necessary, but I think it can also make sense.
2001-8-9 -05:00

回到话题: A small design issue

回到论坛: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论