//Name: Subhan Hussain //SID : 9315 static void Main(string[] args) { Engine en = new Engine(3); AC ac = new AC(2); LandVehicle lv = new LandVehicle(en, ac, 2); trip tr = new trip("Morning", 7); drive dr = new drive("Evening"); lv.display(); lv.disply(dr); dr.timing(); tr.timing(); en.display(); ac.display(); Console.ReadLine(); }
public othervehicle(Engine eng3, AC ac3, string name) : base(eng3, ac3) { this.name = name; }
public LandVehicle(Engine eng2, AC ac2, int mod1) : base(eng2, ac2) { this.model = mod1; }
public Vehicle(Engine e, AC Ac) { this.eng0 = e; this.ac0 = Ac; }