operator + method

Point operator +(
  1. Point p
)

Implementation

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