Grokking the Object Oriented Design Interview
Vote
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 began as a bookseller. It now sells a wide range of consumer goods and digital media. For this problem, we focus on the online retail business, where users can buy and sell products.
Requirements and Goals of the System
We will design 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 name or category.
- Users can search and view all products
.....
.....
.....
Like the course? Get enrolled and start learning!
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?
G
generic_user
· 4 years ago
Why do we include a sequence diagram
Show 1 reply
Reading Progress
0%