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 cannot change it 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 more easily abstract our code into functions.
Q) Is there an easy way to remember the main benefit of using references?
A) To help you remember what a reference is for, consider this short rhyme:
Moving large objects can make our games choppy, passing by reference is faster than copy.