Page 1 of 1
					
				About Question enthuware.ocpjp.v7.2.1722 :
				Posted: Thu Oct 20, 2016 4:00 pm
				by Sai Divya sree
				Hi,
Since interfaces variable are by default static and final.Can we assign a new value to the version variable in MediaReader class?
			 
			
					
				Re: About Question enthuware.ocpjp.v7.2.1722 :
				Posted: Thu Oct 20, 2016 8:12 pm
				by admin
				You cannot change a final variable. So no, it is not possible to change version variable of Classic interface.
But MediaReader is not doing that. It has its own version variable.
			 
			
					
				Re: About Question enthuware.ocpjp.v7.2.1722 :
				Posted: Mon Oct 24, 2016 1:29 pm
				by Sai Divya sree
				Got it.Thank you.
			 
			
					
				Re: About Question enthuware.ocpjp.v7.2.1722 :
				Posted: Sat May 30, 2020 1:25 pm
				by saurabh.agarwal560
				Why not we can have option 2 (Classic).version as it will call the classic version. With option 3 (Classic.this).version should call the version of MediaReader class as we are using this which takes current class reference. Please clarify.
			 
			
					
				Re: About Question enthuware.ocpjp.v7.2.1722 :
				Posted: Sun May 31, 2020 1:15 am
				by admin
				Option 2 is (Classic)version; There is no dot. version is an int variable. How can you cast it to anything??
(Classic).version; is syntactically incorrect code.