diff --git a/code/CarSpotController.cpp b/code/CarSpotController.cpp index 44bf859..8a31e19 100644 --- a/code/CarSpotController.cpp +++ b/code/CarSpotController.cpp @@ -29,7 +29,15 @@ class CarSpotController { this->occupied_spots++; } + void decrement_occupied_spots () { + this->occupied_spots--; + } + bool is_full() { return this->occupied_spots == this->total_spots; } + + bool is_empty() { + return this->occupied_spots == 0; + } }; \ No newline at end of file