The fact that variables hold references to objects has implications for operations that change objects. The string-replace operation str.replace("Goodbye") replaces the characters of the string to which str is a reference with the text "Goodbye". The variable abc contains another reference to the same string object. Even though
... See moreJoe Leo • The Well-Grounded Rubyist
But what happens when the assignment or initialization takes place? What exactly is the relation between a variable and the object that it represents?