Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
1.3 kB
1
Indexable
Never
// author grp 3

public class Lecturer {

    private int lecturerId;
    private String fullName;
    private String contactNumber;
    private String emailAddress;

    public Lecturer(int lecturerId, String fullName, String contactNumber, String emailAddress) {
        this.lecturerId = lecturerId;
        this.fullName = fullName;
        this.contactNumber = contactNumber;
        this.emailAddress = emailAddress;
    }

    public int getLecturerId() {
        return lecturerId;
    }

    public String getFullName() {
        return fullName;
    }

    public String getContactNumber() {
        return contactNumber;
    }

    public String getEmailAddress() {
        return emailAddress;
    }

    public void setLecturerId(int lecturerId) {
        this.lecturerId = lecturerId;
    }

    public void setFullName(String fullName) {
        this.fullName = fullName;
    }

    public void setContactNumber(String contactNumber) {
        this.contactNumber = contactNumber;
    }

    public void setEmailAddress(String emailAddress) {
        this.emailAddress = emailAddress;
    }

    public String toString() {
        return " Lecturer ID: " + lecturerId + " Fullname: " + fullName + " Contact Number: " + contactNumber + " Email Address: " + emailAddress;
    }

}
Leave a Comment