[fpc-devel] "Friend" classes?
DrDiettrich
drdiettrich at compuserve.de
Sat Mar 19 09:25:44 CET 2005
Michael Van Canneyt wrote:
> sorry, but I fail to see the problem ? The above makes all protected
> members of a class visible. This is normal, that is why they are
> protected. If you want to avoid that, make the members private. Then
> they are visible only in the same unit, even for other classes (for
> 'cooperation'), but not outside the unit, even with a descendent.
I.e. "protected" means to you that there exist means to bypass that
protection?
Hmm, I think that I can update my mental class model accordingly ;-)
Thanks
DoDi
More information about the fpc-devel
mailing list