This one is for myself, as I often forget how to implement pass by reference and pass by value, and what the difference is between them.
Pass by reference:
Declare varible and set it :
SalesLine salesLine = salesLine4
Down-side is if salesLine4 changes - so does salesLine
Pass by value:
If salesLine4 changes - salesLine doesn't