x = $x; $this->y = $y; } function translate($x, $y) { $this->x += $x; $this->y += $y; } function show() { return "Point($this->x, $this->y)"; } } $p = new point(0, 1); $p2 = $p; $p2->translate(1, 1); print "p2: " . $p2->show() . "\n"; print "p : " . $p->show() . "\n"; ?>