예제 #1
0
        static void Main(string[] args)
        {
            Automobile car = new Automobile();

            car.Start();
            Console.WriteLine($"The car is started: {car.IsOn}");
            car.Accelerate(20);
            Console.WriteLine();
            Console.WriteLine("It's an open stretch, gun it!");
            car.Accelerate(180);

            // See a cop
            car.Brake(60);
            Console.WriteLine();
            car.Brake();
        }