Returning Multiple Values From Methods

It is not possible to return more than one value from a method. You
cannot, for example, return the licensePlate,
speed and maxSpeed fields from a single
method. You could combine them into an object of some kind and
return the object. However this would be poor object oriented
design.

The right way to solve this problem is to define three separate
methods, getSpeed(), getMaxSpeed(), and
getLicensePlate(), each of which returns its
respective value. For example,