I haven't programmed in C# but my son asked me if there is anything wrong with this implementation
public class Person : A, IClonable {
....
public object Clone() {
return this;
}
}
My gut feeling is that it is wrong because this Clone() method implementation does not return any new object. I think that the Clone() method should create a new object or call a method that creates a new object and then return it. That is what I said to my son, but not having done any C# programming I became uncertain. Could someone shed a bit light on this.