------解决方案-------------------- http://topic.csdn.net/u/20110529/15/f9e3f9a0-dcd2-41c1-a6b3-13874b08e1ca.html?46647 看看这个帖子里面的!
------解决方案-------------------- class Father { public static class PublicInner { public static void display() { System.out.println("Father PublicInner Class "); } }
private static class PrivateInner { public static void display() { System.out.println("Father PrivateInner Class "); } } }
class Child extends Father { }
public class ChildAndFather { public static void main(String[] args) { Child.PublicInner.display(); // The type Child.PrivateInner is not visible // Child.PrivateInner.display(); } }