Timeline for My perfect shopping cart class
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 12, 2014 at 0:16 | history | edited | Jamal | CC BY-SA 3.0 |
added 59 characters in body
|
May 2, 2013 at 19:30 | vote | accept | hlapointe | ||
May 2, 2013 at 19:30 | |||||
May 2, 2013 at 16:17 | comment | added | Peter Kiss | Becouse the entry (CartItem) is immutable therefore you cannot change the item or the quantity inside it. Yes we can create a class which isn't immutable and we can return the entry it self but then for example the delete would be a little more complicated but yes we can create one method to return an entry and one method to return the index of an entry (IComparable) it's up to you. | |
May 2, 2013 at 15:25 | comment | added | hlapointe | Why you return the index rather than the entry!? | |
S May 2, 2013 at 14:58 | history | suggested | hlapointe | CC BY-SA 3.0 |
corrections.
|
May 2, 2013 at 14:07 | review | Suggested edits | |||
S May 2, 2013 at 14:58 | |||||
May 2, 2013 at 13:54 | comment | added | hlapointe | I like your way of thinking. Would it be a good idea to define the class CartItem inside SessionCart? According, it is the only class that will use it. | |
May 2, 2013 at 7:00 | history | answered | Peter Kiss | CC BY-SA 3.0 |