Question: I dont know where i made the mistake :(( I keep getting the same value for the first fraction even after I multiplied. It is
RUN CODE GRADING EXERCISE DOCS HELP MORE ithis exercise, you must take your Fraction class from earlier and extend t by adding a few handy methods YOUR JOB Implement the following methods in the Fraction class public void add(Fraction other) public void subtract(Fraction other) public void multiply(Fraction othen) public int getNumerator() public int getDenominator) public void setNumerator(int x) public void setDenominator(int x) public String tostring() Use the FractionTester file to test as you go along. HINTS Note that public void add(Fraction other) public/ void subtract (Fraction other) publsc/void multiply(Fraction other) are vosd methods. They do not return anything. These methods should not create a new Fraction and return it Instead these methods should modify the instance variables to be added subtracted. or multiplied by the Fraction other 10:06 AME
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
