#include "complex.h" // Note: The default arguments don't appear here. Complex::Complex(float real, float imag) { cout << "Constructor called.\n"; re = real; im = imag; } // The default copy constructor, with a message announcing the call. Complex::Complex(const Complex &x) { cout << "Copy constructor called.\n"; re = x.re; im = x.im; } // Add is overloaded, but the signatures make them unique. void Complex::Add(Complex y) { re += y.re; im += y.im; } void Complex::Add(float y) { re += y; } void Complex::Multiply(Complex y) { } void Complex::Multiply(float y) { } void Complex::Conjugate(void) { } void Complex::Display(void) { cout << re << " + " << im << "j"; }