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

18 lines
266 B
PHP

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