Shopping Cart in Flex 4
- by chchrist
I am trying to code a shopping cart using Flex 4. I am at the design process and I need to figure out which design pattern to use. I am thinking of using the Singleton pattern. I will have a Product Value Object where I'll save each product's values and the I'll push each product to an array variable in my Singleton class.
Is my logic OK? Is there a better way?
Thanks in advance