public class GameObject{ public int x; public int y; public GameObject(int x, int y){ //constructor this.x = x; this.y = y; } }