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

            Console.WriteLine($"{car.Model}/{car.Brakes()}/{car.Gas()}/{car.Driver}");
        }
Ejemplo n.º 2
0
        public static void Main()
        {
            string driverName = Console.ReadLine();

            Ferrari ferrari = new Ferrari(driverName, Model);

            Console.Write($"{ferrari.Model}");

            Console.Write(ferrari.Brakes());

            Console.Write(ferrari.Gas());

            Console.Write($"{ferrari.Driver}");

            Console.WriteLine();
        }