Esempio n. 1
0
    static void Main(string[] args)
    {
        var     driver  = Console.ReadLine();
        Ferrari ferrari = new Ferrari(driver);

        Console.WriteLine($"488-Spider/{ferrari.Brakes()}/{ferrari.PushGas()}/{driver}");
    }
Esempio n. 2
0
        public void Run()
        {
            var driverName = Reader.ReadLine();
            var driver     = new Ferrari(driverName);

            Writer.Write($"{driver.Model}{driver.Brakes()}{driver.Gas()}{driver.Name}");
        }
Esempio n. 3
0
    static void Main(string[] args)
    {
        string name    = Console.ReadLine();
        ICar   ferrari = new Ferrari("488-Spider");

        Console.Write(ferrari.Model);
        ferrari.Brakes();
        ferrari.GasPedal();
        Console.Write(name);
    }