// 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; }
// default create a specified vehicle type public Vehicle(string name, VehicleType v) { details = new VehicleDetails(v); this.name = name; }