That code declares a class Vehicles, but within it you refer to another class: Vehicle.

I suspect you only intend there to be one class. In any case the name of the public class *must* match the...