For those who want to understand better what it means passing by reference and the shalow copy solution from this post here is a good video: https://www.youtube.com/watch?v=duyshh9Fs1U
For those who want to understand better what it means passing by reference and the shalow copy solution from this post here is a good video: https://www.youtube.com/watch?v=duyshh9Fs1U