Quiz 2
11 July
In the context of classes, what is the difference between
"public" and "private" ?
Solution
"private" is used to declare that all members that follow it may only
be accessed by members of the same class. On the contrary, all
members that follow a "public" declaration may be accessed from
any part of the program using the standard field access operator ".".
Last updated : 11 July 2000 11.14am