I'm studying classes, constructor and deconstructor this week.
I thought I was understanding it properly, so I decided to input the following code to test for a better understanding.
I thought I would see 4 7 2, but the output doesn't cout the default constructor for the second input. It's just 4 2 followed by 2 4.
My question is, is the code wrong, or is my understanding of how the default constructor should work is?