Files
php_8/methods/segment_point.php
2022-05-03 17:52:13 +03:00

11 lines
183 B
PHP

<?php
class Point
{
public function __construct(public int $x = 0, public int $y = 0) {}
public function __toString()
{
return "({$this->x},{$this->y})";
}
}