摘要: 一般情况F()不能调用G(),但是你可以增加一个静态成员class A{private static A instance=new A();public static void F()//静态{instance.G();//正确}public void G()//非静态{}} 阅读全文
posted @ 2016-01-14 09:38 JaneAi 阅读(4713) 评论(0) 推荐(1) 编辑