What is the difference between a local variable, an instance field, an input parameter, and a class field?
A local variable is defined within the scope of a block. It cannot be used outside of that block. Example: I cannot use local outside of that if 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 … Read more