Well done!

You have completed Instance Variables and Local Variables!

Quiz Question 1 of 4

In the following piece of code, which variable would be the instance variable?

def calculate_total(a, b)
   c = a - 1
   @total = a + b
end

Choose the correct answer below:

Skip Quiz Review Video