public class A { S s = new S(); public void method() { System.out.println("A.method() running"); s.m1(); } }