Hotel Reservation System Design
Design and implement an object-oriented hotel reservation system. The system should include classes for managing rooms, bookings, and customer data, with a focus on proper encapsulation and inheritance. Key functionality should include checking room availability, making reservations, and managing existing bookings.
Asked at:
Expedia
Apple
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
Late June, 2026
Apple
Senior
You have a hotel with multiple rooms. Implement a system that lets customers book a room for a date range, and prevents double-booking. Core method you must implement: boolean book(Customer customer, int roomId, LocalDate startDate, LocalDate endDate) Returns true if the booking succeeds, false if the room is unavailable for that range (already booked, or invalid room).
Late February, 2026
Expedia
Mid-level
Hello Interview Premium
Your account is free and you can post anonymously if you choose.