Arrays & Call-by-Reference
Reference types are always passed call-by-reference
- Pro: Donít need to copy lots of data
- Con: Since you can access the original object, you can change it
Arrays are a reference type
- Whole arrays are passed call-by-reference