About Question enthuware.ocpjp.v7.2.1702 :
Posted: Wed Oct 09, 2013 7:33 am
Hi,
In BooBoo k = 5
In Boo k = 5
should be
In Boo k = 5
In BooBoo k = 5
because of course Boo's constructor will run first. It's a bit misleading when there are so many questions that specifically test understanding of program flow by asking for the specific order of what is output. Of course here it's the correct answer by elimination but it isn't actually correct. I just ran the code to make sure.
Cheers
In BooBoo k = 5
In Boo k = 5
should be
In Boo k = 5
In BooBoo k = 5
because of course Boo's constructor will run first. It's a bit misleading when there are so many questions that specifically test understanding of program flow by asking for the specific order of what is output. Of course here it's the correct answer by elimination but it isn't actually correct. I just ran the code to make sure.
Cheers
