How to declare local "variables" as final in Objective-C? -


In Java, I can finally declare a local "variable" like

 

Code> myMethod () {last string foo = "Hello World!"; Foo = "Bye ..."; // compilation error !! Return; }

When I try to change its value, the compiler gets an error.

What is the purpose of this? Like

const keyword.

For more information, this article looks right on your alley:


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -