示例#1
0
 public Car(string model, Engine engine, int weight)
     :this(model, engine)
 {
     this.Weight = weight;
     this.Color = "n/a";
 }
示例#2
0
 public Car(string model, Engine engine, int weight, string color)
     :this(model, engine)
 {
     this.Weight = weight;
     this.Color = color;
 }
示例#3
0
文件: Car.cs 项目: nadsit/Study
 public Car(string model, Engine engine, string color)
     : this(model, engine)
 {
     this.Color = color;
 }
示例#4
0
文件: Car.cs 项目: nadsit/Study
 public Car(string model, Engine engine, int weight)
     : this(model, engine)
 {
     this.Weight = weight;
 }
示例#5
0
 public Car(string model, Engine engine, string color)
     : this(model, engine, -1, color)
 {
 }
示例#6
0
 public Car(string model, Engine engine, int weight)
     : this(model, engine, weight, "n/a")
 {
 }
示例#7
0
 public Car(string model, Engine engine)
     : this(model, engine, -1, "n/a")
 {
 }