静态内部类 调用
package com.fh.hello1;
public class T {
public static void main(String[] args) {
new A().aHello();
new A.B().bHello();
new A.B.C().cHello();
}
static class A {
public void aHello() {
System.out.println("A hello");
}
static class B {
public void bHello() {
System.out.println("B hello");
}
static class C {
public void cHello() {
System.out.println("C hello");
}
}
}
}
}

浙公网安备 33010602011771号