import java.awt.Point; abstract class GameObject { Point location; GameObject(Point p) { this.location = p; } public String toString() { return this.getClass().getName() + " at " + this.location; } abstract void update(); abstract char getAppearance(); }