My question is does the default constructor get called with the statement inside the while statement ?
I have already checked with the help of the debugger that values (variables of the LaserLine ) from the previous iteration remains there unless updated in the current iteration. This is strage .