Esempio n. 1
0
        public Program6()
        {
            Engine myHatchbackEngine = new Engine(1400);
            MyHatchback = new Hatchback(myHatchbackEngine, true, "Citroen", "Saxo", true, "petrol");

            Engine mySaloonEngine = new Engine(1800);
            MySaloon = new Saloon(mySaloonEngine, true, "Audi", "A3", true, "diesel");

            Engine myLorryEngine = new Engine(2000);
            MyLorry = new Lorry(myLorryEngine, true, "Mercades", "Actros", true, "petrol");

            Stig myStig = new Stig(MyHatchback);
            myStig.GoDriving(600);
        }
Esempio n. 2
0
        public Program6()
        {
            Engine myHatchbackEngine = new Engine(1400);

            MyHatchback = new Hatchback(myHatchbackEngine, true, "Citroen", "Saxo", true, "petrol");

            Engine mySaloonEngine = new Engine(1800);

            MySaloon = new Saloon(mySaloonEngine, true, "Audi", "A3", true, "diesel");

            Engine myLorryEngine = new Engine(2000);

            MyLorry = new Lorry(myLorryEngine, true, "Mercades", "Actros", true, "petrol");

            Stig myStig = new Stig(MyHatchback);

            myStig.GoDriving(600);
        }