3 ms·
You can however do this pretty easily in your class definition in a way that is transparent to callers. The "transparent to callers" part is pretty common to a
by gumby 8y ago
You can however do this pretty easily in your class definition in a way that is transparent to callers. The "transparent to callers" part is pretty common to any OO model, while the "pretty easily in your class definition" is I think what most people say when they mean "complete control" -- you get much higher degrees of control than you do with, say, Java, though it will be effort beyond the default case.
I use this very approach in a code base I"m working on right now. Some object members are stored in the object and some are not but they all look like class members to the callers.