private

Peter Hansen peter at engcorp.com
Mon Jul 8 19:48:56 EDT 2002


Matt Gerrans wrote:
> 
> > Ok, here's a challenge for you... Write a C++ program with private data
> > members, then find at least two trivial ways of circumventing it.
> 
> And when you've completed this exercise in C++, try it in Java. ;-)

Isn't the access information like "private" and "protected" just
included as flag bits in the .class file?  That would make it pretty
easy to change...

-Peter



More information about the Python-list mailing list