Exemplo n.º 1
0
        public void AddCar()
        {
            CarModel model = ChooseModel();

            if (model.Equals(0))
            {
                Console.WriteLine("Incorrect command!");
            }
            else
            {
                Transport car = new Transport(model);
                Cars.Add(car);
                Buy();
            }
        }