Suppose you overload the << operator as follows:
ostream& operator <<(ostream& stream, const Rational& rational){ stream << rational.getNumerator() << " / " << rational.getDenominator(); return stream;}Do you still need to definefriend ostream& operator<<(ostream& stream, Rational& rational) in the Rational class?
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.