Questions tagged [public-members]
18 questions
0
votes
2 answers
C++ public variable scope confusion
If you declare a public variable in a class, then you can modify that variable from any function that is also a member of that class.
If you declare a variable within a function, then its scope doesn't exceed the bounds of the function.
So is a…

Thermodynamix
- 349
- 2
- 12
0
votes
0 answers
UITextView variable, allow to set text using special method only?
I have a UITextField property inside a UIViewController class. I want to allow to set its text using a special method in view controller only. The goal is to move other view controller's elements according to a size of a text inside the text…

user2083364
- 744
- 1
- 7
- 20
-1
votes
1 answer
What's the coding convention about public/private members in WPF with binding?
I know this is a largely debated question in stackoverflow (as e.g. in Should I use public or private variables?), but I haven'd been able to find a suitable answer to my doubt.
Shortly said, OO coding etiquette mandates that members of a class be…

Giovanni Nieddu
- 47
- 6