예제 #1
0
 public Car WithWheelSteering(IWheelDrive wheelDrive)
 {
     return(new Car(_name, wheelDrive, _acceleration));
 }
예제 #2
0
 private Car(string name, IWheelDrive wheelDrive, IAcceleration acceleration)
 {
     _name         = name;
     _wheelDrive   = wheelDrive;
     _acceleration = acceleration;
 }