Is there a reason why I get the correct result when I use this approach within the function that I instantiated my class as an array but when I do the same thing in a function where I pass the array...