public class SampleCass{
public void DoSomething(SampleCass sample){
//Do method implementation
}
}
In the above code sample, the method parameter type passed is same as the class to which the method belongs to. I wanted to know why it is done this way and also some details on it
Thanks in advance