??? 09/21/06 16:06 Read: times |
#124806 - What OOP tells you Responding to: ???'s previous message |
Is that you have Get and Set functions instead of giving everyone carte blanche access to the variable. Thus if a variable is only meant to be read, the caller uses the GetVar() func and no Set function is implemented. This prevents a function from changing the variables content on purpose or accidentally. The chief gain here is when working in teams of programmers. It's a good policy and should be used where the resources allow it.
|