5.6.7 Car Class Codehs Updated -

: Methods like milesAvailable() return the calculated range ( gas * efficiency ). Testing Your Code

These return the current values of the instance variables. 5.6.7 Car Class Codehs

: Using two versions of addGas() —one to fill the tank completely and another to add a specific amount. : Methods like milesAvailable() return the calculated range

// Getter for mileage public double getMileage() { return mileage; } 5.6.7 Car Class Codehs