Bird
0
0

Which class is primarily responsible for storing information about individual people in a shared expense system?

easy📝 Conceptual Q11 of 15
LLD - Design — Splitwise (Expense Sharing)
Which class is primarily responsible for storing information about individual people in a shared expense system?
APayment
BUser
CExpense
DGroup
Step-by-Step Solution
Solution:
  1. Step 1: Understand the role of each class

    User class represents individual people, Group holds multiple users, Expense tracks costs.
  2. Step 2: Identify which class stores individual info

    User class stores personal details like name and ID for each person.
  3. Final Answer:

    User -> Option B
  4. Quick Check:

    User = Individual person [OK]
Quick Trick: User class = individual person info [OK]
Common Mistakes:
  • Confusing Group with User
  • Thinking Expense stores user details
  • Assuming Payment is a class here

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes