public override void Lights()
 {
     _lights = new Lights()
     {
         Name = "车灯"
     };
     Console.WriteLine($"{this.GetType().Name} builder Lights");
 }
Exemple #2
0
 public Car(Engine engine, Wheels wheels, Lights lights)
 {
     _engine = engine;
     _wheels = wheels;
     _lights = lights;
 }