Class Position { int x; int y; Object myObject; Position(int newX, int newY) { this.x = newX; this.y = newY; } public Position Clone() { Position clone = new Position(this.x, this.y); clone.myObject = this.myObject.Clone(); return clone; } }