public void AddNewCar()
        {
            string name;
            string color;
            int    speed;
            int    year;

            Console.Write("Введите имя машины: ");
            name = Console.ReadLine();

            Console.Write("Введите цвет машины: ");
            color = Console.ReadLine();

            Console.Write("Введите скорость машины: ");
            speed = int.Parse(Console.ReadLine());

            Console.Write("Введите год выпуска машины: ");
            year = int.Parse(Console.ReadLine());

            car newCar = new car(name, color, speed, year);

            myCars.Add(newCar);
        }
 public void DisplayInfoAboutCar(car car)
 {
     Console.WriteLine("\nИмя  : {0}\nЦвет  : {1}\nСкорость  : {2}\nГод  : {3}", car.Name, car.Color, car.Speed, car.Year);
 }