136k views
2 votes
public interface Frac { /** @return the denominator of this fraction */ int getDenom(); /** @return the numerator of this fraction */ int getNum(); } Which of the interfaces, if correctly implemented by a Fraction class, would be sufficient functionality for a user of the Fraction class to determine if two fractions are equivalent

User Shareef
by
7.6k points

1 Answer

4 votes

Answer:

The Full details of the answer is attached.

public interface Frac { /** @return the denominator of this fraction */ int getDenom-example-1
public interface Frac { /** @return the denominator of this fraction */ int getDenom-example-2
public interface Frac { /** @return the denominator of this fraction */ int getDenom-example-3
public interface Frac { /** @return the denominator of this fraction */ int getDenom-example-4
public interface Frac { /** @return the denominator of this fraction */ int getDenom-example-5
User Clever
by
8.2k points