This topic has been archived. It cannot be replied.
-
工作学习 / IT技术讨论 / A small design issue
-jabber(jabber);
2001-8-9
{759}
(#161202@0)
-
my idea.I'm not sure what you want. here just my point:
1.that guy should thinking like C + some OO design. He was not clear about the OO.
2.It's depend your project time limit and usecase.If you have enough time, you'd re-consider this design decision.
-macsym(日进斗斤);
2001-8-9
{252}
(#161213@0)
-
why not.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.
-gemlan(gem);
2001-8-9
{431}
(#161708@0)
-
My opinion--- for discussion, not for debate
-jabber(jabber);
2001-8-10
{1232}
(#162135@0)
-
for discuss
-blaise(blaise);
2001-8-10
{836}
(#161876@0)