Bicycle

data class Bicycle(val maxSpeed: Speed = Speed.kilometersPerHour(BICYCLE_SPEED_KMH)) : Vehicle

A vehicle of type bicycle.

Important: This is a Public Preview API. It may be changed or removed at any time.

Parameters

maxSpeed

The maximum speed of the bike.

Constructors

Link copied to clipboard
constructor(maxSpeed: Speed = Speed.kilometersPerHour(BICYCLE_SPEED_KMH))

Properties

Link copied to clipboard
open override val maxSpeed: Speed
Link copied to clipboard