题目内容

阅读程序,完成划线处代码,使得程序运行结果为3.Student.java源代码:package entity;public class Student {private Student(){}static int accessnum;public static int getAccessnum() {return accessnum;}public static void setAccessnum(int accessnum) {Student.accessnum = accessnum;}public static 1getStudent(){2;Student m=new Student();return m;}public int getSno() {return this.getSno();}public void setSno(String sno) {}public String getName() {return name;}public void setName(String name) {this.name = name;}public int getAge() {return age;}public void setAge(int age) {this.age = age;}public String getSex() {return sex;}public void setSex(String sex) {this.sex = sex;}public String getSclass() {return sclass;}public void setSclass(String sclass) {this.sclass = sclass;}String sno;String name;int age;String sex;String sclass;}Test.java源代码:package view;import entity.*;public class Test {public static void main(String[] args) {entity.Student s1=3;Student.getStudent();Student.getStudent();System.out.println(entity.Student.getAccessnum());}}

查看答案
更多问题

赤壁赋的作者是

清风徐来,。

自其变者而观之,。

自其不变者而观之,,而又何羡乎

答案查题题库