内部类中定义的方法不能在内部类中调用吗
package project;
public class WaiBuLei {
public class NeiBuLei{
public void show(){
System.out.println("内部类与外部类!");
}
NeiBuLei m = new NeiBuLei();
m.show();
}
public static void main(String[] args) {
WaiBuLei n = new WaiBuLei();
NeiBuLei h = n.new NeiBuLei();
h.show();
}
}