+ 1

Object variables stores references. What does a reference mean?

23rd Sep 2016, 11:45 AM
Tabres Basha
Tabres Basha - avatar
4 Réponses
0
reference
29th Nov 2021, 4:52 PM
M.S.M.RIFKEE
M.S.M.RIFKEE - avatar
0
reference
1st Jan 2022, 8:36 AM
M.I.M.Aqueel
M.I.M.Aqueel - avatar
- 1
This is the best explanations i've seen: https://blog.penjee.com/wp-content/uploads/2015/02/pass-by-reference-vs-pass-by-value-animation.gif When you bass by reference, you are passing the memory address where that object is. So, if you change some value of this in the method that received it by reference, these changes will be reflected on the original variable. Hope it was helpful,
23rd Sep 2016, 11:59 AM
Vinícius Dias
Vinícius Dias - avatar
- 1
reference
16th Sep 2020, 11:34 AM
Suraj Pandey
Suraj Pandey - avatar