public class BookReservation {
  private Date creationDate;
  private ReservationStatus status;
  private String bookItemBarcode;
  private String memberId;

  public static BookReservation fetchReservationDetails(String barcode); // why this method is static 

This class looks different from the one which is represanted in the class diagram. The method is taking barcode as parameter does it search this barcode in catalog?

Course: Grokking the Object Oriented Design Interview - Learn Interactively
Lesson: Design a Library Management System - Grokking the Object Oriented Design Interview

Hi @Lavakush_Mani_Tiwari, each book and member card will have a unique barcode. The system will read barcodes from books and members’ library cards.