package comitdomain; 教师类 public class Teacher private String tno; private String username; private String password; public Teacher public TeacherString tno String username String
package com.it.domain;
/**
-
教师类 */ public class Teacher { private String tno; private String username; private String password;
public Teacher() {}
public Teacher(String tno, String username, String password) { this.tno = tno; this.username = username; this.password = password; }
public String getTno() { return tno; }
public void setTno(String tno) { this.tno = tno; }
public String getUsername() { return username; }
public void setUsername(String username) { this.username = username; }
public String getPassword() { return password; }
public void setPassword(String password) { this.password = password; }
@Override public String toString() { return "Teacher{" + "tno='" + tno + ''' + ", username='" + username + ''' + ", password='" + password + ''' + '}'; }
原文地址: https://www.cveoy.top/t/topic/hlcF 著作权归作者所有。请勿转载和采集!