Bird
0
0

In a library system, which class should be responsible for managing the process of lending a book to a member?

easy🧠 Conceptual Q2 of 15
LLD - Design — Library Management System
In a library system, which class should be responsible for managing the process of lending a book to a member?
ABook
BLibrarian
CMember
DLoan
Step-by-Step Solution
Solution:
  1. Step 1: Identify the lending process role

    The lending process involves tracking which book is loaned to which member and when.
  2. Step 2: Assign responsibility to Loan class

    The Loan class is designed to handle lending details, such as loan date, due date, and involved entities.
  3. Final Answer:

    Loan -> Option D
  4. Quick Check:

    Lending management = Loan class [OK]
Quick Trick: Loan class manages book lending details [OK]
Common Mistakes:
MISTAKES
  • Assigning lending to Book class
  • Using Member class for lending logic
  • Confusing Librarian with Loan responsibility

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes