Hi
Here is my class that implements copy constructor
public class TestCopyConst
{
public int i=0;
public TestCopyConst(TestCopyConst tcc)
{
this.i=tcc.i;
}
}
i tried to create a instance for the above class in my main method
TestCopyConst testCopyConst = new TestCopyConst(?);
I am not sure what i should pass as parameter. If i have to pass a instance of TestCopyConst then again i have to go for "new" which in turn will again prompt for parameter
TestCopyConst testCopyConst = new TestCopyConst(new TestCopyConst(?));
what is missing here? or the concept of copy constructor is itself something different?