FB_init

Thursday, September 18, 2008

For the Record: Why Privatize the Variables?

I don't like using private variables when I suspect the variable may have a different use in the future. I can't understand the "movement" towards not using protected variables at all. Some even suggest using private variables with public accessor methods instead of protected variables! I like protected variables. Perhaps someone will see a different use of my code in the future.

1 comment:

Anonymous said...

Amen! How many times I've wanted to extend a library class but found that the variable I needed was private.