public ParkingLot() { for (int i = 0; i < parkingslots.Length; i++) { parkingslots[i] = new ParkingSlot(); } }
public ParkingSlot Clone() { ParkingSlot temp = new ParkingSlot(); foreach (Vehicle v in vehicles) { temp.AddVehicle(v.Clone()); } return(temp); }