It can sometimes be related to a for loop, however there are other examples of when scope could limit the use of it. A method is another example of when scope limits the use of the variable. If you define a variable in one method, it does not mean that it is defined in all other methods.