# Answer to Question #33537 in C++ for Bob

Question #33537

Finish the implementation of the class Fraction

Fraction operator+(const Fraction& left, const Fraction& right)

{

Fraction result(left numerator() * right.denominator()

+ right.numerator() * left.denominator(),

left.denominator() * right.denominator());

return result;

}

by overloading the remaining arithmetic operations.

Fraction operator+(const Fraction& left, const Fraction& right)

{

Fraction result(left numerator() * right.denominator()

+ right.numerator() * left.denominator(),

left.denominator() * right.denominator());

return result;

}

by overloading the remaining arithmetic operations.

Expert's answer

## Comments

## Leave a comment