package pkg; public class B { public String test() { return new A().getString(); } }