I have a scenario like:
MyClass obj1 = new MyClass();
............//some operations on obj1;
MyClass obj2 = new MyClass();
obj2 = obj1;
I h
To add to KennyTM's answer, object Clone() method makes a copy of the invoking object. There are two type of copies which can be made. Deep copy and shallow copy. In KennyTM's answer, a deep copy is made. In a deep copy, the original object and the copied object are completely independent of each other. For more info, read up on the docs for ICloneable.
And the Clone() declaration could be something like this:
public object Clone()
{
Myclass obj=new Myclass();
return obj;
}