>The limited circumstance of returning a single value from a form class.
Every time you need a single return value from a form class?
As far as the level of "cleaness", in what ways would a private variable be cleaner? Unless this is old news to everyone else, we can list the pros and cons of both approaches here or at the wiki.
>Why not a public variable for these items?
Why not? I dunno, but in that scenario, Private and Publics are pretty much the same, and I aviod using a public, so I use a private.
>I don't understand where you are going here. You begin with espousing a second reasons where you would use a private variable. The passage above then concludes with why private variables are not a good idea in this case. Could you clarify what you mean here?
Ahh, I see. Bad grammar and rushed thoughts (there was a large line of students behind me in the computer lab). The paragraph explained where I would use a private variable, and then I attempted to say that I wouldn't use one to return a value from a class.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement