Beispiel #1
0
        static void Main(string[] args)
        {
            Engine      en = new Engine(1);
            AC          ac = new AC(2);
            LandVehicle lv = new LandVehicle(en, ac, 2);
            trip        tr = new trip("Morning", 3);
            drive       dr = new drive("Evening");

            lv.display();
            lv.disply(dr);
            dr.timing();
            tr.timing();
            en.display();
            ac.display();
            Console.ReadLine();
        }
Beispiel #2
0
 public othervehicle(Engine eng3, AC ac3, string name) : base(eng3, ac3)
 {
     this.name = name;
 }
Beispiel #3
0
 public LandVehicle(Engine eng2, AC ac2, int mod1) : base(eng2, ac2)
 {
     this.model = mod1;
 }
Beispiel #4
0
 public Vehicle(Engine e, AC Ac)
 {
     this.eng0 = e;
     this.ac0  = Ac;
 }