When working with C++, overload the
operator instead of using a
methods should be used to change the speed.
However, they are subject to the constraints that the
speed is always greater than or equal to zero and less than or equal to
Attempts to increase speed above
or decrease it below 0 should simply pin the speed to the boundaries.
Note that this class is quite general and can actually describe pedestrians as well.