|
private final Layout layout; |
Can you explain why layout is necessary in Restaurant class? My understanding is that Restaurant doesn't directly interact with Layout, but delegates its work to ReservationManager, which uses Layout internally. So, I think you can safely delete the field.
ood-interview/restaurant/restaurant/Restaurant.java
Line 17 in 29b9ddc
Can you explain why
layoutis necessary inRestaurantclass? My understanding is thatRestaurantdoesn't directly interact withLayout, but delegates its work toReservationManager, which usesLayoutinternally. So, I think you can safely delete the field.