3.9.4 someVariable instead of Breakfast?
VirtualNonsense opened this issue · comments
Andreas Nachtmann commented
Hey!
So far I'm enjoying your book a lot!
Here is something i noticed though.
In 3.9.4 within the second code block you pass a reference to BreakFast into the method instead of the freshly created instance of that class. Was that on purpose?
// Store it in variables.
var someVariable = Breakfast;
// Pass it to functions.
someFunction(Breakfast);
Thank you for making this publicly available!
Edit:
Misread the paragraph above...