Beispiel #1
0
 // default create a car vehicle
 public Vehicle(string name)
 {
     details = new VehicleDetails();
     // ReadOnly Struct so below won't work
     // this.details.engines = 3;
     this.name = name;
 }
Beispiel #2
0
 // default create a specified vehicle type
 public Vehicle(string name, VehicleType v)
 {
     details   = new VehicleDetails(v);
     this.name = name;
 }