4.6.7: Full Fraction Class bublic class Fraction { ll Create your instance variables and constructor here public int getNumerator() { // IMPLEMENT THIS METHOD } public int getDenominator() { // IMPLEMENT THIS METHOD } public void setNumerator(iht x) { // IMPLEMENT THIS METHOD } public void setDehominator(int x) { // IMPLEMENT THIS METHOD public void add(Fraction other) { // IMPLEMENT THIS METHOD public void subtract(Fraction other) { // IMPLEMENT THIS METHOD public void multiply(Fraction other) { // IMPLEMENT THIS METHOD public String toString() { // IMPLEMENT THIS METHOD Exercise 4.6.7: Full Fraction Class m In this exercise, you must take your Fraction class from earlier and extend it 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(Fr'action other) public int getNumeratur'O public int getDenominator'O public void setNumer'ator(int x) public void setDenominat0r(int x) public String toString() Use the FractiunTester' file to test as you go along.



Answer :

Other Questions