Exemplo n.º 1
0
        public Program4()
        {
            MyHatchback = new Hatchback(true, "Citroen", "Saxo", true, "petrol");
            MySaloon = new Saloon(true, "Audi", "A3", true, "diesel");
            MyLorry = new Lorry( true, "Mercades", "Actros", true, "petrol");

            CurrentAutomobile = AutomobileType.Hatchback;
        }
Exemplo n.º 2
0
        public Program4()
        {
            MyHatchback = new Hatchback(true, "Citroen", "Saxo", true, "petrol");
            MySaloon    = new Saloon(true, "Audi", "A3", true, "diesel");
            MyLorry     = new Lorry(true, "Mercades", "Actros", true, "petrol");

            CurrentAutomobile = AutomobileType.Hatchback;
        }