Hi All

class test
{
int *i;
public:

test(int n)
{
i = new int(n)

}

test(const test& obj)
{

}


void disp()
{
cout<<*i<<endl;
}
};

Please tell me how to write copy constructor for this class



Thanks