Please explain me the correct answer where :
Code: Select all
public void addUsage(int bytesUsed){
if(bytesUsed>0){
totalUsage = totalUsage + bytesUsed;
totalBill = totalBill + bytesUsed*costPerByte;
}
}
Thank youtotalBill is always equal to totalUsage*costPerByte
