withOccupancy abstract method

VehicleSpecificationScooterBuilder withOccupancy(
  1. int occupancy
)

Sets the vehicle occupants number.

  • occupancy The vehicle occupants number.

Returns VehicleSpecificationScooterBuilder. The VehicleSpecificationScooterBuilder object with the vehicle occupants number set to the new value.

Implementation

VehicleSpecificationScooterBuilder withOccupancy(int occupancy);