How do I fix my code?
public class Fraction
{
private int numerator, denominator,
numberOfFraction;
public Fraction ()
{
numerator = 0;
denominator = 1;
numberOfFraction++;
}
public Fraction (int n, int
d)
{
numerator = n;
denominator = d;
numberOfFraction++;
}
private int gcd (int num1, int num2)
{
if (num1 == 0)
return num2;
return gcd (num2 % num1,
num1);
}
public Fraction add (Fraction
third)
{
int n = numerator * third.denominator
+ third.numerator * denominator;
int...