(ADTFraction x)
| 56 | |
| 57 | //--------------------------------------------------- |
| 58 | public ADTFraction plus(ADTFraction x) {//add two fractions this=3/5 x=7/8 |
| 59 | int num, den; |
| 60 | den=this.d * x.d; |
| 61 | num=this.n * x.d + x.n * this.d; |
| 62 | ADTFraction f1 = new ADTFraction(num,den); |
| 63 | return f1; |
| 64 | } |
| 65 | |
| 66 | |
| 67 | //--------------------------------------------------- |
nothing calls this directly
no outgoing calls
no test coverage detected