Originally Posted by Graham
Herb Sutter, in Exceptional C++, has an excellent article about the pimpl idiom (also known as "Compiler Firewall"). Basically, the idea is that you present an "interface class" to the rest of the world (note: I don't mean a class that only has pure virtual functions; I mean one that only has public - and possibly protected - functions, plus the private pointer-to-implementation). You separate the implementation of that public interface into another class: this one is completely hidden from the rest of the program.
So, yes, that about sums it up, except that I'm not sure what you mean by "prevents the modification of this class". The implementation class is hidden away, the external (interface) class, uses it.