LLD - Design — Hotel Booking SystemWhich class is best suited to store customer booking dates and payment details?ABooking classBRoom classCHotel classDCustomer classCheck Answer
Step-by-Step SolutionSolution:Step 1: Identify data related to bookingsBooking dates and payment details are specific to each reservation made by a customer.Step 2: Match data to class responsibilityThe Booking class manages reservation details including dates and payments, unlike Room or Hotel classes.Final Answer:Booking class -> Option AQuick Check:Booking info = Booking class [OK]Quick Trick: Booking class holds reservation and payment info [OK]Common Mistakes:Storing booking dates in Room classPutting payment details in Hotel classConfusing Customer class with Booking class
Master "Design — Hotel Booking System" in LLD9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepArchTryChallengeDesignRecallScale
More LLD Quizzes Design — Chess Game - Move validation and check detection - Quiz 7medium Design — Chess Game - Board and piece hierarchy - Quiz 3easy Design — Chess Game - Observer pattern for UI updates - Quiz 9hard Design — Food Delivery System - Rating and review system - Quiz 11easy Design — Food Delivery System - Rating and review system - Quiz 7medium Design — Hotel Booking System - Room type hierarchy - Quiz 1easy Design — Hotel Booking System - Cancellation and refund policy - Quiz 11easy Design — Hotel Booking System - Availability checking - Quiz 5medium Design — Hotel Booking System - Search and filter design - Quiz 15hard Design — Splitwise (Expense Sharing) - Why Splitwise tests financial logic - Quiz 9hard