LLD - Design — Parking Lot System
Examine the following class snippet:
What is the primary issue with this class design?
class ParkingFloor {
List spots;
void addSpot(Spot spot) {
spots.add(spot);
}
} What is the primary issue with this class design?
