I am new to C++ and am trying to understand overloading to get my arithmetic operators to overload successfully. Here is the code that doesn't compile.
ComplexNumber ComplexNumber::operator*(const ComplexNumber& rightOp) const
{
double newValue = realNumberValue * rightOp.realNumberValue;
return ComplexNumber(newValue);
}