Hi All,

I am giving you one example which perform deep copy in this example if you do not override copy constructor then it will give run time error, not perform as what we want so it will be help full for understanding why we have tooverride copy constructor if compiler provide it by default.

class base
{
int *a;
public:
base()
{}
void allocate()
{
a = new...