By using this site, you agree to our Privacy Policy and our Terms of Use. Close
richardhutnik said:
Is spaceship an object or a class? I don't believe you can reference a class definition for variable values.

If the variable is static you can.  Which is why he was getting the compilation error.  The compiler was looking for static variables with those names and found variables that were not static.