Page 1 of 1

About Question enthuware.ocajp.i.v8.2.1075 :

Posted: Fri Dec 16, 2016 9:13 am
by ANTRENT
Hi I do not understand the answer to this question since it indicates that the correct answer is "void k () {i ++;} // (3)" and by its definition "Default constructor (having no arguments) is automatically created only if the class Does not define any constructors. So as soon as // 2 is inserted the default constructor will not be created. " This is not a problem, please help me.

Thank you

Re: About Question enthuware.ocajp.i.v8.2.1075 :

Posted: Fri Dec 16, 2016 9:47 am
by admin
void k(){ i++; } is not a constructor. It is just a method. If you insert it in the class, there is no impact on constructors.

HTH,
Paul.