Unnamed
public text v1 · immutableClass Position
{
int x;
int y;
Position(int newX, int newY)
{
this.x = newX;
this.y = newY;
}
public Position Clone()
{
return new Position(this.x, this.y);
}
}Class Position
{
int x;
int y;
Position(int newX, int newY)
{
this.x = newX;
this.y = newY;
}
public Position Clone()
{
return new Position(this.x, this.y);
}
}