Difference between constructor and copy constructor
Constructor | Copy Constructor |
A default constructor is used to initialize data member of an object | A copy constructor is used to copy the value of an object to another data members |
It does not carry any parameter in its prototype | It carries an object parameter in its prototype |
In default constructor we need not to use reference of object. | In copy constructor we need to use reference of object. |