public class B { T t = new T(); public void method() { System.out.println("B.method() running"); t.m2(); } }