getMake()
is not static
, so you need to access it for a single instance of Car
at a time. So change your code to userCar.getMake()
. This means that you want to get the make of userCar
, which is an actual object instance.
In constrast, calling Car.getMake()
doesn't make conceptual sense, because there is no single make for every single Car
in the world. Only individual cars such as userCar
have a make, model, etc.