public Car(Engine engine, bool satnav, string manufacturer, string model, bool locked, string fueltype) : base(engine, satnav, manufacturer, model, locked, fueltype) { Wheels = 4; Gears = 5; Engine = engine; }
public Hatchback(Engine engine, bool satnav, string manufacturer, string model, bool locked, string fueltype) : base(engine, satnav, manufacturer, model, locked, fueltype) { FuelCapacity = 50; AvgMPG = 20; TopSpeed = 120; Engine = engine; }
public Automobile(Engine engine, bool satnav, string manufacturer, string model, bool locked, string fueltype) { MOT = true; SatNav = satnav; Manufacturer = manufacturer; Model = model; Locked = locked; FuelType = fueltype; Engine = engine; }
public Lorry(Engine engine, bool satnav, string manufacturer, string model, bool locked, string fueltype) : base(engine, satnav, manufacturer, model, locked, fueltype) { FuelCapacity = 150; AvgMPG = 10; Wheels = 6; Gears = 6; TopSpeed = 120; Engine = engine; }
public Saloon(Engine engine, bool satnav, string manufacturer, string model, bool locked, string fueltype) : base(engine, satnav, manufacturer, model, locked, fueltype) { FuelCapacity = 70; AvgMPG = 30; Wheels = 4; Gears = 5; AlarmCode = "abc12345"; Engine = engine; }
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); }