Quiz: addGas Method
Complete the addGas method! Use “camel case” for the gasInTank instance variable. |
gasInTank = gasInTank + amount; |
Add the amount to the gas that is already in the tank. |
Complete the addGas method! Use “camel case” for the gasInTank instance variable. |
gasInTank = gasInTank + amount; |
Add the amount to the gas that is already in the tank. |