static void Main(string[] args) { var driver = Console.ReadLine(); Ferrari ferrari = new Ferrari(driver); Console.WriteLine($"488-Spider/{ferrari.Brakes()}/{ferrari.PushGas()}/{driver}"); }
public void Run() { var driverName = Reader.ReadLine(); var driver = new Ferrari(driverName); Writer.Write($"{driver.Model}{driver.Brakes()}{driver.Gas()}{driver.Name}"); }
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); }