Is it possible to set a object's value, and once that value is set not allow it to change?

I could write a method to do it, but I wasn't sure if there was some sort of modifier I could use?

I need to set a value once, and not allow it to change at all, but the value needs to be dynamic at run-time.

For example, assigning a value to an integer, and as long as that class is alive that has that field, it will always keep that value and if someone, or something, attempts to change the value it throws a fit and/or refuses to change it.

Anyone know if that's possible?

7 Years
Discussion Span
Last Post by zachattack05

Will we bet that I have already felt more like an idiot in my life than you?:D
So don't worry, it is just part of life I guess.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.