Untitled

 avatar
unknown
plain_text
2 years ago
1.7 kB
5
Indexable
public class Student {
    private String name;
    private String id;
    private String group;
    private String email;

    /**
     *An abstract class that represents an algorithm.
     *
     * @author zhangtj
     *
     * @version 1.0
     */
    public Student() {
        this.name = "Student";
        this.id = "000";
        this.group = "K62CB";
        this.email = "uet@vnu.edu.vn";
    }

    /**
     *An abstract class that represents an algorithm.
     *
     * @author zhangtj
     *
     * @version 1.0
     */
    public Student(Student s) {
        this.name = s.name;
        this.id = s.id;
        this.group = s.group;
        this.email = s.email;
    }

    /**
     *An abstract class that represents an algorithm.
     *
     * @author zhangtj
     *
     * @version 1.0
     */
    public Student(String name, String id, String email) { //
        this.name = name;
        this.id = id;
        this.group = "K62CB";
        this.email = email;
    }

    public String getName() {
        return name;
    }

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

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getGroup() {
        return group;
    }

    public void setGroup(String group) {
        this.group = group;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    String getInfor() {
        return this.name + " - " + this.id + " - " + this.group + " - " + this.email;
    }
}