Page 1 of 1
About Question enthuware.ocpjp.i.v11.2.3220 :
Posted: Sat Jan 09, 2021 9:38 am
by teodorj
Cannot use 'var' on variable without initializer. In other words, a var declaration must assign a value to the variable.
var also cannot be declare as instance field
Re: About Question enthuware.ocpjp.i.v11.2.3220 :
Posted: Sun Jan 10, 2021 12:59 am
by admin
Enhanced explanation to include this point as well.
thank you for your feedback!
Re: About Question enthuware.ocpjp.i.v11.2.3220 :
Posted: Thu May 13, 2021 5:51 am
by goblingift
Unfortunately, the description for the answer 1 "var s;" hasn´t enhanced yet.
It is still "Cannot use 'var' on variable without initializer. In other words, a var declaration must assign a value to the variable."
--> But should contains the comment, that var can´t be used for instance variables at all
Re: About Question enthuware.ocpjp.i.v11.2.3220 :
Posted: Fri May 14, 2021 11:02 am
by admin
Where you are looking? I just checked the explanation and it is there.
Also, please update your question bank to v 1.53.