class A { private Object b = new Inner(); public abstract class Inner { public String toString() { return "A"; } } }