Copy Constructors

A copy constructor is used to initialize an object with another object. When a copy constructor exists, the bitwise copy is bypassed.
class CMyClass {
   int m_nInteger;
   public:
        CMyClass(const CMyClass &object);  //copy constructor
}
CMyClass::CMyClass(const CMyClass &object)
{
 m_nInteger=object.m_nInteger; //explicit copy of data
}