Bird
Raised Fist0

In a typical e-commerce system, which class is responsible for storing the shipping address and payment details?

easy🧠 Conceptual Q2 of Q15
LLD - Design — Online Shopping Cart
In a typical e-commerce system, which class is responsible for storing the shipping address and payment details?
AProduct
BCart
COrder
DInventory
Step-by-Step Solution
Solution:
  1. Step 1: Identify data related to shipping and payment

    Shipping address and payment details are part of the final purchase process.
  2. Step 2: Assign responsibility to the Order class

    The Order class represents a completed purchase and stores these details.
  3. Final Answer:

    Order class stores shipping and payment details -> Option C
  4. Quick Check:

    Shipping/payment info = Order class [OK]
Quick Trick: Order finalizes purchase, so it stores shipping and payment [OK]
Common Mistakes:
MISTAKES
  • Storing shipping in Product
  • Assigning payment to Cart
  • Confusing Inventory with Order

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes