Bird
Raised Fist0

Which class is primarily responsible for storing information about individual rooms in a hotel system?

easy🧠 Conceptual Q11 of Q15
LLD - Design — Hotel Booking System
Which class is primarily responsible for storing information about individual rooms in a hotel system?
ARoom
BHotel
CBooking
DGuest
Step-by-Step Solution
Solution:
  1. Step 1: Understand the role of each class

    The Hotel class manages the overall hotel, Booking handles reservations, and Room stores details about each room.
  2. Step 2: Identify which class holds room details

    Since Room is designed to represent individual rooms, it stores room number, type, and availability.
  3. Final Answer:

    Room -> Option A
  4. Quick Check:

    Room class = stores room info [OK]
Quick Trick: Room class holds room details, not Hotel or Booking [OK]
Common Mistakes:
MISTAKES
  • Confusing Hotel with Room class
  • Thinking Booking stores room details
  • Assuming Guest class stores room info

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes