Hi! Trying to understand the Parking Lot design. Some classes don’t have public members at all, for example Person or Address. Others don’t have meaningful public members, for example ParkingRate has only one public member declared as void calculate();
which doesn’t make sense to me as the method doesn’t have parameters and returns nothing. What is the purpose of such classes? They look unusable to me.
Course: Grokking the Low Level Design Interview Using OOD Principles - Learn Interactively
Lesson: Code for the Parking Lot - Grokking the Low Level Design Interview Using OOD Principles