operator + method

Complex operator +(
  1. Complex other
)

Implementation

Complex operator +(Complex other) =>
    Complex(real: real + other.real, imaginary: imaginary + other.imaginary);