you are calling
class dot method.
But in my example I called
object dot method.
Giving the same name for class and object, only with uppercase and lowercase letter as a difference, is a confusing programming style and should be avoided, because it leads to the error you experienced.
So in your case, correct is:
-
Tile tile = new Tile();
-
tile.draw();
-
remark:
Of course you could also call "Tile.draw()", but then you must have declared the method draw() as "static" before ....