Question: what is the difference between a local variable and a field?
Answer: A local variable is defined within the scope of a block. It cannot be used outside of that block. ... An instance field, or field, is a variable that's bound to the object itself. I can use it in the object without the need to use accessors, and any method contained within the object may use it.