Grokking the Object Oriented Design Interview
0% completed
Design Amazon - Online Shopping System
Let's design an online retail store.
Amazon (amazon.com) is the world’s largest online retailer. The company was originally a bookseller but has expanded to sell a wide variety of consumer goods and digital media. For the sake of this problem, we will focus on their online retail business where users can sell/buy their products.
Requirements and Goals of the System
We will be designing a system with the following requirements:
- Users should be able to add new products to sell.
- Users should be able to search for products by their name or category. 3
.....
.....
.....
Like the course? Get enrolled and start learning!
G
generic_user
· 4 years ago
Why do we include a sequence diagram
Show 1 reply
A
asra.naseem517
· 2 years ago
public abstract class Customer { private ShoppingCart cart; private Order order; public ShoppingCart getShoppingCart(); public bool addItemToCart(Item item); public bool removeItemFromCart(Item item); } public class Guest extends Customer { public bool registerAccount(); }
In the requirement it is mentioned that guest should not have access to place an order , but here guest extends the functionality of Customer which has Order in it , can you explain why do we have order in Customer class?