G
Guest
I see tons of examples where people use properties where the get and set
correspond directly to a single variable in a class. If this is the case, why
not just access the variable directly? Is it an encapsulation issue? This
seems strange since there's often no restriction applied at the level of the
property. Just curoius...
-Ben
correspond directly to a single variable in a class. If this is the case, why
not just access the variable directly? Is it an encapsulation issue? This
seems strange since there's often no restriction applied at the level of the
property. Just curoius...
-Ben
