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: