Reference
noun
say it: “REF-er-ens” /ˈrɛfərəns/
A value that says where in memory something is, so following it leads to the thing itself.
What is a reference?
A reference is a value that says where in memory something is, like a note in one mailbox that says look in box 512. Following it is one step. Two variables can hold references to the same object, so a change made through one is seen through the other. Linked lists, trees and graphs are built from references.
In a sentence
- “Both variables hold a reference to the same list, so a change through one shows through the other.”
Level: Apprentice · More Software Development terms at this level
Updated