Exemple #1
0
    static void Main(string[] args)
    {
        string driversName = Console.ReadLine();
        ICar   ferari      = new Ferari(driversName);

        Console.WriteLine(ferari);
    }
Exemple #2
0
        static void InitializeVehicle()
        {
            Vehicle vehicle = new Vehicle
            {
                CurrentSpeed = 45,
            };

            vehicle.DisplaySpeedometer();
            Console.WriteLine();

            Ferari ferari = new Ferari()
            {
                CurrentSpeed = 560,
            };

            ferari.DisplaySpeedometer();
            ferari.BreakPadOil();
        }