例如定义一个类: class Text { public static int number; public int temp; } 如果你想访问temp属性,你就必须先创建一个Text的对象,才能访问:Text b = new Text(); b.temp;这就是实例 例如定义一个类: class Text { public static int number; 你的当前访问异常,请进行认证后继续阅读剩余内容。 提交