Answer the question
In order to leave comments, you need to log in
Why inherit from ICloneable?
class cl1 : ICloneable
{
public object Clone()
{
return new cl1();
}
}
class cl1
{
public cl1 Clone()
{
return new cl1();
}
}
Answer the question
In order to leave comments, you need to log in
Actually, you can combine them :)
And the first option is needed so that you can cast to ICloneable and not know what we are cloning there
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question