Bird
0
0

Which class in a parking system is responsible for managing multiple floors?

easy🧠 Conceptual Q11 of 15
LLD - Design — Parking Lot System
Which class in a parking system is responsible for managing multiple floors?
AParkingLot
BFloor
CSpot
DVehicle
Step-by-Step Solution
Solution:
  1. Step 1: Understand the role of ParkingLot

    The ParkingLot class represents the entire parking area and manages multiple floors within it.
  2. Step 2: Compare with other classes

    Floor manages spots on a single level, Spot represents a single parking space, and Vehicle represents the car or bike.
  3. Final Answer:

    ParkingLot -> Option A
  4. Quick Check:

    ParkingLot manages floors = C [OK]
Quick Trick: ParkingLot holds floors; floors hold spots [OK]
Common Mistakes:
MISTAKES
  • Confusing Floor as managing multiple floors
  • Thinking Spot manages floors
  • Assigning Vehicle to manage floors

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes