setSpeed method

void setSpeed(
  1. double speed
)

Implementation

void setSpeed(double speed) {
  this._speed = speed;
}