FAQ
Here are some questions that might be on your mind:
Q) Can you summarize these references again?
A) You must initialize a reference immediately, and it cannot be changed to reference another variable. Use references with functions so you are not working on a copy. This is good for efficiency because it avoids making copies and helps us abstract our code into functions more easily.
Q) Is there an easy way to remember the main benefit of using references?
A) To help you remember what a reference is used for, consider this short rhyme:
Moving large objects can make our games choppy,
passing by reference is faster than copy.