Bird
0
0

Which class should primarily handle the details of a library member's personal information such as name and membership ID?

easy🧠 Conceptual Q1 of 15
LLD - Design — Library Management System
Which class should primarily handle the details of a library member's personal information such as name and membership ID?
ALibrarian
BBook
CMember
DLoan
Step-by-Step Solution
Solution:
  1. Step 1: Understand the role of Member class

    The Member class is designed to represent library users and store their personal details like name and membership ID.
  2. Step 2: Match class responsibility to data

    Since personal information belongs to the user, it fits naturally in the Member class, not in Book, Librarian, or Loan classes.
  3. Final Answer:

    Member -> Option C
  4. Quick Check:

    Class responsibility = Member [OK]
Quick Trick: Member class stores user info like name and ID [OK]
Common Mistakes:
MISTAKES
  • Confusing Member with Librarian
  • Storing personal info in Book class
  • Assigning member data to Loan class

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes