单纯对象与数组实现学生管理系统1.0

2018-10-05  本文已影响0人  听风听雨oline

import java.util.Scanner;
/**

}

----------------------------------------分割线----------------------------------
//Student对象类
public class Student {
private String name;
private String phoneNumber;

public Student() {
    
}
public Student(String name,String phoneNumber) {
    this.name = name;
    this.phoneNumber = phoneNumber;
}

public String getName() {
    return name;
}

public void setName(String name) {
    this.name = name;
}

public String getPhoneNumber() {
    return phoneNumber;
}

public void setPhoneNumber(String phoneNumber) {
    this.phoneNumber = phoneNumber;
}

}

上一篇下一篇

猜你喜欢

热点阅读