摘要: 1 public class Student{ 2 static int number = 0; // 静态变量的访问可以不用创建类的实例就可就可使用的方法访问 3 String name; // 学生姓名 4 5 Student( ){ // 无参构造函数 6 System.out.println("创建学生成功... 阅读全文
posted @ 2018-05-17 16:45 大花猫爱吃鱼 阅读(26678) 评论(0) 推荐(1) 编辑