// Implementation of class Complex #include #include "complex.h" // Constructor Complex::Complex(double r, double i ) : real(r), imaginary(i) {} // destructor Complex::~Complex(){}; // Overloaded addition operator Complex Complex::operator+(const Complex & rhs) const{ return Complex(real + rhs.real, imaginary + rhs.imaginary); } // Overloaded subtraction operator Complex Complex:: operator-(const Complex & rhs) const{ return Complex(real - rhs.real, imaginary - rhs.imaginary); } const Complex & Complex:: operator= (const Complex & rhs){ real = rhs.real; imaginary = rhs.imaginary; return *this; } // Display a Complex object in the form: (a, b) void Complex::print() const{ cout << '(' << real << ", " << imaginary << ')'; } //Implement the GetReal method here //Implement the GetImaginary method here //Implement the SetReal method here //Implement the SetImaginary method here