подскажите пожалуйста.Вернеться ли тот же самый результат?

Complex::Complex operator+(const Complex& other) const {return this->real + other.real && this->imaginary + other.imaginary; }

и

Complex Complex::operator+(const Complex& other) {
  Complex result = *this;
  result.im += other.im;
  result.re += other.re;
  return result;
}

Ответы (0 шт):