From a higher-level OO viewpoint, why did the
Java language designers decide to allow a class to be contained within an interface?? what purpose does it serve??
interface A {
class B {
void D() { System.out.println("interface A - D"); }
void E() { System.out.println("interface A - E"); }
}
}
To me, it just seems like a corruption of the design of the interface. I am curious if I am missing something or if it is like the tail appendage in the human body.