public Car(string model, string vendor, Engine engine = null, Door leftdoor = null, Door rightdoor = null, Wheels wheels = null) { Model = model; Vendor = vendor; Engine = engine; LeftDoor = leftdoor; RightDoor = rightdoor; Wheels = wheels; }
public CarBuilder SetWheels(Wheels wheels) { car.Wheels = wheels; return(this); }
public void SetWheels(Wheels wheels) { _car.Wheels = wheels; }
public override string ToString() { return($"[Board:{Board}, Wheel Type:{Wheels.First()}, Number of wheels:{Wheels.Count()}, Number of motors:{NumberOfMotors}]"); }