static void Main(string[] args) { string driversName = Console.ReadLine(); ICar ferari = new Ferari(driversName); Console.WriteLine(ferari); }
static void InitializeVehicle() { Vehicle vehicle = new Vehicle { CurrentSpeed = 45, }; vehicle.DisplaySpeedometer(); Console.WriteLine(); Ferari ferari = new Ferari() { CurrentSpeed = 560, }; ferari.DisplaySpeedometer(); ferari.BreakPadOil(); }