Да и в С# всё так же:
using System;
public class A
{
private String value;
public A(String value)
{
this.value = value;
}
public void Method(A otherA)
{
Console.WriteLine(this.value + " " + otherA.value);
}
}
public class Program
{
public static void Main()
{
A a1 = new A("OLOLO");
A a2 = new A("TROLOLO");
a1.Method(a2);
}
}