class TT {
private static int count = 0;
private final int id = ++count;
private void methodA () {
System.out.println("TT.methodA " + id);
}
public void methodTT(TT t) {
t.methodA();
}
}
public class Test {
public static void main(String[] args) {
TT t1 = new TT();
TT t2 = new TT();
t2.methodTT(t1);
}
}