Ejemplo n.º 1
0
 public static void InitiateParkingSpaceArray()
 {
     for (int i = 0; i < lotSize; i++)
     {
         parkingSpaces[i] = new ParkingSpace();
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Parking"/> class.
        /// </summary>
        public Parking()
        {
            parkingSpaces = new ParkingSpace[100];

            for (int i = 0; i < parkingSpaces.Length; i++)
            {
                parkingSpaces[i] = new ParkingSpace();
            }
        }