

class Student {

	// fields
	private int studentID;
	private String fName;
	private String lName;

	// constructor
	public Student(int sID, String fName, String lName) {
		this.studentID = sID;
		this.fName = fName;
		this.lName = lName;
	}

	// getters
	public String getName() {
		return fName + " " + lName;
	}

	public int getStudentID() {
		return studentID;
	}

	// setter
	public void setLastName(String lName) {
		this.lName = lName;
	}

	// override the Object class' equals()
	@Override
	public boolean equals(Object o) {
		if(!(o instanceof Student)) {
			return false;
		}

		Student s = (Student) o;

		return (s.getStudentID() == this.studentID);
	}
	

	// overide the Object class' toString()
	@Override
	public String toString() {
		String s = "(" + lName + ", " + fName + ")";
		return s;
	}

}
