Original post by Anonymous Poster
Who cares if you call it by value and I by reference
I care. If someone states that Java passes objects by reference and I know it is wrong, why shouldn't I correct the person?
I work with lots of beginners, and they all have their troubles with this issue, so I think it's very important to be clear about this.
if ALL I NEED is to work with the class inside of the function???????????????????????
How often do you work with classes? Most of the times, you'll be working with (references to) objects.
Tell me just one single case where "changing the instance" inside of a function was terribly needed. Just one...
A swap function maybe?
BTW it's not about changing the instance (because that's totally possible by sending messages to the instance!), it's about changing the reference. Letting it point to ANOTHER instance.