属性的权限问题
The field Singleton.instance is not visible。为什么编译器汇报这样的错,当我把static Singleton instance = new Singleton();改为public static Singleton instance = new Singleton();时有不报错了。有点不科学呀
The field Singleton.instance is not visible。为什么编译器汇报这样的错,当我把static Singleton instance = new Singleton();改为public static Singleton instance = new Singleton();时有不报错了。有点不科学呀
2016-10-20
举报