Example #1
0
        static void Main(string[] args)
        {
            Car newCar = new Car("Mercedes", "C", 2015);

            newCar.Display();
            ecoCar myCar = new ecoCar("Toyota", "Auris", 2010);

            myCar.Display();
            myCar.setFuelConsume(10);
            myCar.CalculateFuelConsume(100);
            myCar.Display();

            Console.ReadLine();
        }