Suppose we have class class1.
Class1 has a method called method1, and this method gets an object of type class1. eg:
public class class1
{
public void method1(class1 obj)
{
}
}
What does this mean: a method gets an object of this class type? In what scenarios can this be used?
source
share