Пример #1
0
 public ParkingLot()
 {
     for (int i = 0; i < parkingslots.Length; i++)
     {
         parkingslots[i] = new ParkingSlot();
     }
 }
Пример #2
0
        public ParkingSlot Clone()
        {
            ParkingSlot temp = new ParkingSlot();

            foreach (Vehicle v in vehicles)
            {
                temp.AddVehicle(v.Clone());
            }
            return(temp);
        }