Inheritance Problem

Joe Buck jbuck@synopsys.COM
Thu May 10 07:57:00 GMT 2001


> "protected:" means that a derived class has access to that
> member when it is a member of the same instance.

This is not correct.  In C++, access protection is based on classes,
not instances.  The object pointed to by "this" has no special status.



More information about the Gcc mailing list