withOccupancy abstract method

VehicleSpecificationTaxiBuilder withOccupancy(
  1. int occupancy
)

Sets the vehicle occupants number.

  • occupancy The vehicle occupants number.

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

Implementation

VehicleSpecificationTaxiBuilder withOccupancy(int occupancy);