- Aug 4, 2001
- 967
- 0
- 0
Is there any point in declaring a variable "private" in a class if there's going to be a function to set it to any value and a function to read its value?
Originally posted by: ElDonAntonio
Hmmm I see. But suppose a particular case where I don't perform any value checking in a single threaded app, does it provide any advantage in terms of efficiency or memory?
As always, thanks for the helpful answers singh![]()
Originally posted by: ElDonAntonio
Hmmm I see. But suppose a particular case where I don't perform any value checking in a single threaded app, does it provide any advantage in terms of efficiency or memory?
As always, thanks for the helpful answers singh![]()
Originally posted by: ElDonAntonio
Thanks a lot for your good advice, VBboy and singh!
FYI, I'm actually writing a program (a 3D modeler) partly for fun and partly for my "end of undergrad project" (not sure how to say that in english). I'll put it up online when I have something a little more complete!
