1.根据以下的设计要求编写源代码。java
根据以下的清粉网站源码设计要求编写源代码。java
flans mod 源码class Student{
flans mod 源码private String name;
flans mod 源码private int age;
flans mod 源码public Student(){
flans mod 源码this.name = "nobody";
flans mod 源码this.age =;
flans mod 源码}
flans mod 源码flans mod 源码
public void setName(String name){
flans mod 源码this.name = name;
flans mod 源码}
flans mod 源码public String getName(){
flans mod 源码return name;
flans mod 源码}
flans mod 源码public void setAge(int age){
flans mod 源码this.age = age;
flans mod 源码}
flans mod 源码public int getAge(){
flans mod 源码return age;
flans mod 源码}
flans mod 源码public boolean isSameAge(Student s){
flans mod 源码return age == s.age;
flans mod 源码}
flans mod 源码}
flans mod 源码2024-11-19 00:58
2024-11-19 00:35
2024-11-19 00:29
2024-11-19 00:04
2024-11-18 23:52
2024-11-18 23:49
2024-11-18 23:46
2024-11-18 23:44