public class HelloWorld { private int age=10; public class Inner { private int age = 20; private void show() { System.out.println(age); } } public static void main(String[] args) { Inner i = new HelloWorld().new Inner(); i.show();//调用内部类对象的方法 但i.age是错误的 ????show也是私有方法啊 } }