1) Parameter passing by reference
As well as passing b______ data types we can also pass o______ as parameters.
basic
objects
2) Do we pass the whole object?
No!
Whole objects can get quite large.
Instead, we pass in the address of an object, that is, its ‘reference’. Hence, passing parameters by reference.
e.g. Product myProduct;