Mar-08-2017, 10:04 AM
The problem is the position of the second line.
In this way, *all* instances of the class will share the same array. So, the array of the second one starts with the same elements as the array of the first one, as they are set for all instances.
Shift the line to the start of
In this way, *all* instances of the class will share the same array. So, the array of the second one starts with the same elements as the array of the first one, as they are set for all instances.
Shift the line to the start of
fill
and try what happens.