1.根据以下的设计要求编写源代码。java
根据以下的机房运维管理系统源码设计要求编写源代码。java
箱唛打印源码class Student{
箱唛打印源码private String name;
箱唛打印源码private int age;
箱唛打印源码public Student(){
箱唛打印源码this.name = "nobody";
箱唛打印源码this.age =;
箱唛打印源码}
箱唛打印源码箱唛打印源码
public void setName(String name){
箱唛打印源码this.name = name;
箱唛打印源码}
箱唛打印源码public String getName(){
箱唛打印源码return name;
箱唛打印源码}
箱唛打印源码public void setAge(int age){
箱唛打印源码this.age = age;
箱唛打印源码}
箱唛打印源码public int getAge(){
箱唛打印源码return age;
箱唛打印源码}
箱唛打印源码public boolean isSameAge(Student s){
箱唛打印源码return age == s.age;
箱唛打印源码}
箱唛打印源码}
箱唛打印源码