7.0 Classes
To protect against the compiler providing default definitions, for all but the destructor, you can put a declaration in the protected (or private) section of the class header, but not give any definition in the implementation file.
class X
{
X (); // default constructor
X (const X& x); // copy constructor
X& operator = (const X& x); // operator equal
virtual ~X (); // destructor
};
Generated with CERN WebMaker