/* Checks if the spot is big enough for the * vehicle */ public abstract bool canFitinSpot(ParkingSpot spot);
public override bool canFitinSpot(ParkingSpot spot) { return(true); }
/* Park vehicle in this spot (among others, * potentially) */ public void parkinSpot(ParkingSpot s) { parkingSpots.Add(s); }
public ParkingTicket(Vehicle vehicle, ParkingSpot parkingSpot) { Vehicle = vehicle; ParkingSpot = parkingSpot; ArrivalTime = DateTime.Now; }
public abstract Boolean CanFitInSpot(ParkingSpot parkingSpot);
public void ParkInSpot(ParkingSpot parkingSpot) => ParkingSpots.Add(parkingSpot);
public void ReleaseSpot(ParkingSpot spot) { spot.Floor.ReleseSpot(spot); }