+ 1
Part 1 â Fraction Class ï·Declare two private integer instance variables to hold the numerator and denominator .
2 RĂ©ponses
+ 1
Well the access modifier is private.
The datatype used is int.
private int numer;
private int denom;
+ 1
public class Fraction{
private int numerator;
private int denominator;
}
Is that all you are looking for?