PHP - Classes and Objects
Given this class:
class Point {
public int $x;
public int $y;
public function __construct(int $x, int $y) {
$this->x = $x;
$this->y = $y;
}
}Which code correctly creates a new Point object at coordinates (5, 10)?
