package de.example; public class B extends A { /* InnerA someMethod(){ A as = new A(); return as.new InnerA(); } InnerA someOtherMethod() { return someMethod(); } */ }