Exemplo n.º 1
0
 public Car WithWheelSteering(IWheelDrive wheelDrive)
 {
     return(new Car(_name, wheelDrive, _acceleration));
 }
Exemplo n.º 2
0
 private Car(string name, IWheelDrive wheelDrive, IAcceleration acceleration)
 {
     _name         = name;
     _wheelDrive   = wheelDrive;
     _acceleration = acceleration;
 }