static void Main(string[] args) { var driver = Console.ReadLine(); var car = new Ferrari(driver); Console.WriteLine($"{car.Model}/{car.Brakes()}/{car.Gas()}/{car.Driver}"); }
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(); }