+ 3
The scope of class members depends of the access specifier. Private members of a class are only accessible within it. Protected ones are accessible within the class and any class deriving from it. Public ones are accessible by everyone. Otherwise, the scope of a variable is the block were it was declared and can be used.
15th Sep 2016, 12:29 PM
Zen
Zen - avatar