04-20-2008, 09:04 PM
|
#5 (permalink)
|
|
The Acquainted
Join Date: Feb 2008
Posts: 119
Thanks: 17
|
the return is used for reading, you asked about changing it's value?
Well, you can't 'lock' a variable to read only inside a class.
It is supposed that a class is a totally separate entity and you are the one who read/write class's properties unless you don't trust yourself :)
|
|
|
|