The Shopping Cart and Order Classes
Looking back on the initial list of classes captured from the mission statement, it looks like everything with the exception of three classes has been modeled—the shopping cart, the order, and promotions. Let's hold off on promotions until the detailed use cases are done, but let's consider the shopping cart and order classes now.
A shopping cart is a list of products that the customer has placed into his basket, whereas the order is the shopping cart once the customer has decided to actually purchase the items. In some ways, they're very different. A shopping cart is temporary, meaning that it might not persist beyond the current session. An order is forever, and it needs to be stored and available at any ...
Get MySQL™ and JSP™ Web Applications: Data-Driven Programming Using Tomcat and MySQL now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.