Esempio n. 1
0
 public ParkingLot()
 {
     for (int i = 0; i < parkingslots.Length; i++)
     {
         parkingslots[i] = new ParkingSlot();
     }
 }
Esempio n. 2
0
        public ParkingSlot Clone()
        {
            ParkingSlot temp = new ParkingSlot();

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