Hello to all,
I want to get the Position of one object of a class in an object of another class. So I created the void
in the class with the object of that I want to know the position. The classes name is dock.
In the other class I try to get the Position with
But the compiler says
public int getX_dock() { return getX(); }
int x = dock.getX_dock();
non-static method getX_dock() cannot be referenced from a static contex
What is the Problem?
Thank you very much!
greetings