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