About Question enthuware.ocpjp.i.v11.2.3220 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
teodorj
Posts: 28
Joined: Tue Jun 19, 2018 10:27 am
Contact:

About Question enthuware.ocpjp.i.v11.2.3220 :

Post 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

admin
Site Admin
Posts: 10384
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocpjp.i.v11.2.3220 :

Post by admin »

Enhanced explanation to include this point as well.
thank you for your feedback!

goblingift
Posts: 6
Joined: Mon Mar 24, 2014 5:35 pm
Contact:

Re: About Question enthuware.ocpjp.i.v11.2.3220 :

Post 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

admin
Site Admin
Posts: 10384
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocpjp.i.v11.2.3220 :

Post 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.

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests