Which of the following function declarations would be correct to overload the multiply operator for the Rational numbers class?
a. friend Rational operator times(const Rational &left, const Rational &right);
b. Rational operator times(const Rational &left, const Rational &right);
c. friend Rational operator *(const Rational &left, const Rational &right);
d. Rational operator *(const Rational &left, const Rational &right);
c. friend Rational operator *(const Rational &left, const Rational &right);
Computer Science & Information Technology
You might also like to view...
When a report which has an attachment control is viewed in Print Preview, which attachment displays?
A) The first one B) All of them C) The last one D) None of them
Computer Science & Information Technology
When an exception occurs, the Try block _______.
a) expires b) continues until a matching Catch block c) continues until the end of the Try block d) None of the above
Computer Science & Information Technology