How do you protect variables from accidental assignment?
Anonymous
depending on the variable use 1. if the variable is never changed in the program you can declare it as constant. 2. if the variable is changed in some part of the code and not others make it final 3. in C# you have the sealed and readonly keyword
Check out your Company Bowl for anonymous work chats.