object assignment
- by sandhya
Hi
i have a scenario like
myclass obj1 = new myclass();
............//some operations on obj1;
myclass obj2 = new myclass();
obj2 = obj1;
now, my problem is if i modify any parameter, it is effected in both objects (as both refer to same location). but, when i modify obj2 parameter, it should not parameter value in obj1. (means both should not point to same location). how can i do that? please help me