1.根据以下的设计要求编写源代码。java
根据以下的源码无法进入后台设计要求编写源代码。java
cmsisdap源码class Student{
cmsisdap源码private String name;
cmsisdap源码private int age;
cmsisdap源码public Student(){
cmsisdap源码this.name = "nobody";
cmsisdap源码this.age =;
cmsisdap源码}
cmsisdap源码cmsisdap源码
public void setName(String name){
cmsisdap源码this.name = name;
cmsisdap源码}
cmsisdap源码public String getName(){
cmsisdap源码return name;
cmsisdap源码}
cmsisdap源码public void setAge(int age){
cmsisdap源码this.age = age;
cmsisdap源码}
cmsisdap源码public int getAge(){
cmsisdap源码return age;
cmsisdap源码}
cmsisdap源码public boolean isSameAge(Student s){
cmsisdap源码return age == s.age;
cmsisdap源码}
cmsisdap源码}
cmsisdap源码