Discussion: Monsters on the Move
Execute the code to understand the output and gain insights into constructor behavior and value categories.
We'll cover the following...
We'll cover the following...
Run the code
Now, it’s time to execute the code and observe the output.
Understanding the output
When we initialize the second Jormungandr with a moved-from object, the move constructor gets called for Jormungandr but the copy constructor for Monster. Why is that?
As we learned in the ...