[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C++ Blues.



>I am not sure that is the case, however at the same time I am sure that
>Stroustrup, et al did this for a good reason, if indeed this behavior is
>in the standard. I have been unable to find anything on the topic in his
>book "C++ Programming Language" 3rd Edition.


Actually it's useful for things like:

Class A {public: void foo(){/* something interesting */};};
Class B : 
public Class A {private void foo(); /* don't want A::foo() public in Class
B*/};

Nicholas

--
Nicholas Lee, Kiwa Enterprises Ltd
postmaster for kiwa.co in nz
NO SPAM for me!