Exemple #1
0
        static void Main()
        {
            TestMotorcycle moto = new TestMotorcycle();

            moto.StartEngine();
            moto.AddGas(15);
            moto.Drive(5, 20);

            double speed = moto.GetTopSpeed();

            Console.WriteLine("My top speed is {0}", speed);
            Console.ReadKey();
        }
Exemple #2
0
        static void Main()
        {
            TestMotorcycle moto = new TestMotorcycle();

            moto.StartEngine();
            moto.AddGas(15);
            moto.Drive(5, 20);

            double speed = moto.GetTopSpeed();
         
            Console.WriteLine("My top speed is {0}", speed);
            Console.ReadKey();
        }