public class Contract {
//...
public static final double HOURS_PER_WEEK = 37.5;
public double getWeeksLeft(){
return this.hoursLeft / Contract.HOURS_PER_WEEK;
}
//...
}
public class Contract {
//...
public static final double HOURS_PER_WEEK = 37.5;
public double getWeeksLeft(){
return this.hoursLeft / Contract.HOURS_PER_WEEK;
}
//...
}
Comments