3 ms·
What is expected from something like "model a parking garage in code?" Something like a garage class that has properties like numberOfCars, maxAmountofCars, ma
by eecks 11y ago
What is expected from something like "model a parking garage in code?"
Something like a garage class that has properties like numberOfCars, maxAmountofCars, maxHeight and methods for insertCar(), removeCar(), isGarageFull() ?
- FLUX-YOU 11y agoProbably keeping track of how many parking spots are available as cars enter/exit, and denying entrance if you're full up.
- emodendroket 11y agoProbably that and, I don't know, maybe modeling a Car class and various subtypes that inherit from it?