Exemple #1
0
        static void Main(string[] args)
        {
            int         Amount_New = 0;
            TownCarPark first      = new TownCarPark();
            TownCarPark second     = new TownCarPark(5, 6, 3);
            TownCarPark third      = new TownCarPark(2, 3, 1, 2, 5, true, 0);
            var         fourth     = CreateCarPark();

            first.Information();
            second.Information();
            third.Information();
            fourth.Information();
            Console.WriteLine("How many car parks do you want to add? ");
            Amount_New = CheckInt();
            TownCarPark[] List = new TownCarPark[Amount_New];
            CarPark_List(List);
            Console.WriteLine($"Number of car parks created: {TownCarPark.Quantity_Car_Park}");
            Console.ReadKey();
            return;
        }