- defines everytime link , the loop repeats, but the scope of the link is tied only to this iteration.
- Note that you have declared a link outside the loop , but assign an object inside the loop, the link remains the same, but it refers to a new object of this type at each iteration.
Kumar Vivek Mitra
source share