C++ private/public is checked at link time. If you compile the code as private, then change the header to read public and compile a client of the class, the problem will be caught at link time because the attributes are encoded in the name.
If you defeat that, it might not work at all because the ordering may change in the layout of the data or virtual functions!
Comment on Re: Re: Re: Perl - Is it an OO Language