首页
编程
java
php
前端
首页
编程
java
php
前端
不知道这个undeclared identifier怎么回事?
number是成员变量,在类外面使用,必须通过 对象.number 的形式才能访问,不能直接写。
将方法都定义到类的内部,然后就可以调用了
点击展开全文