我正在尝试开发一个接口,该接口将包含静态类
class C1 {
static interface I // A static interface or class can contain static members.Static members can be
//accessed without instantiating the particular class
{
static class C2 {
}
}
public static void main(String a[]) {
C1.I.C2 ob1 = new C1.I.C2();
System.out.println("object created");
}
}
但我的疑问是接口可以包含非静态的类,如果是,那么它们的对象将如何创建,请告知。谢谢