TXT

student

By Joshua Hunt,2014-10-11 15:05
11 views 0
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package class1; /** * * @author Administrator */ public class Student { private int id; private String name; private String sex; private String className; public Student() { } public Student(int id, String name, String..

/*

     * To change this template, choose Tools | Templates

     * and open the template in the editor.

     */

    package class1;

/**

     *

     * @author Administrator

     */

    public class Student {

     private int id;

     private String name;

     private String sex;

     private String className;

     public Student() {

     }

     public Student(int id, String name, String sex, String className) {

     this.id = id;

     this.name = name;

     this.sex = sex;

     this.className = className;

     }

     /**

     * @return the id

     */

     public int getId() {

     return id;

     }

     /**

     * @param id the id to set

     */

     public void setId(int id) {

     this.id = id;

     }

     /**

     * @return the name

     */

     public String getName() {

     return name;

     }

     /**

     * @param name the name to set

     */

     public void setName(String name) {

     this.name = name;

     }

     /**

     * @return the sex

     */

     public String getSex() {

     return sex;

     }

     /**

     * @param sex the sex to set

     */

     public void setSex(String sex) {

     this.sex = sex;

     }

     /**

     * @return the className

     */

     public String getClassName() {

     return className;

     }

     /**

     * @param className the className to set

     */

     public void setClassName(String className) {

     this.className = className;

     }

}

Report this document

For any questions or suggestions please email
cust-service@docsford.com