var also cannot be declare as instance fieldCannot use 'var' on variable without initializer. In other words, a var declaration must assign a value to the variable.
About Question enthuware.ocpjp.i.v11.2.3220 :
Moderator: admin
-
- Posts: 33
- Joined: Tue Jun 19, 2018 10:27 am
- Contact:
About Question enthuware.ocpjp.i.v11.2.3220 :
-
- Site Admin
- Posts: 10053
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.i.v11.2.3220 :
Enhanced explanation to include this point as well.
thank you for your feedback!
thank you for your feedback!
If you like our products and services, please help us by posting your review here.
-
- Posts: 6
- Joined: Mon Mar 24, 2014 5:35 pm
- Contact:
Re: About Question enthuware.ocpjp.i.v11.2.3220 :
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
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
-
- Site Admin
- Posts: 10053
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.i.v11.2.3220 :
Where you are looking? I just checked the explanation and it is there.
Also, please update your question bank to v 1.53.
Also, please update your question bank to v 1.53.
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 42 guests