classe intérieure standard Java

public class OuterClass {
    public class InnerClass {
    }

    public InnerClass instantiate() {
        return new InnerClass();
    }
}
Expensive Earthworm