I have a class named Location that has several methods in it that do not have any parameters.
Location
However, when I try to create a variable with the result of th
Because you're trying to call it as a class function. You should be creating an instance of Location and calling the function on that. Note also that it returns String Where your code is telling the compiler you're expecting it to return a Location.
String