コード例 #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;
        }
コード例 #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;
        }