All pastes #465678 Raw Edit

Stuff

public text v1 · immutable
#465678 ·published 2007-04-30 14:30 UTC
rendered paste body
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;
  }
}