x = $x; $this->y = $y; ++self::$pointCount; } public function __destruct() { --self::$pointCount; } ///* public function __clone() { ++self::$pointCount; echo "Inside " . __METHOD__ . ", point count = " . self::$pointCount . "\n"; // return 999; // ignored; not passed along as the result of 'clone' } //*/ public function __toString() { return '(' . $this->x . ',' . $this->y . ')'; } }