operator + method

Point operator +(
  1. Point other
)

Implementation

Point operator +(Point other) => Point(x + other.x, y + other.y);