I'm trying to create a method to add two fractions together, but i''m not sure on how it would look like.
This is how the method looks like:
public class Fraction implements FractionInterface, Comparable<Fraction>{private int num; // Numerator private int den; // Denominator public Fraction(){// set fraction to default = 0/1num = 0; den = 1;} // end default constructor public FractionInterface add(FractionInterface secondFraction)//blahblah
i'm suppose to use secondFraction, but not sure how though.