Browse Source

Adding getters and setters in Course class

remotes/origin/fdai7780
fdai7921 11 months ago
parent
commit
34a3af4df5
  1. 24
      src/main/java/org/example/Course.java

24
src/main/java/org/example/Course.java

@ -16,4 +16,28 @@ public class Course {
this.courseCode = courseCode; this.courseCode = courseCode;
this.courseCredit = courseCredit; this.courseCredit = courseCredit;
} }
public String getCourseName() {
return courseName;
}
public void setCourseName(String courseName) {
this.courseName = courseName;
}
public String getCourseCode() {
return courseCode;
}
public void setCourseCode(String courseCode) {
this.courseCode = courseCode;
}
public int getCourseCredit() {
return courseCredit;
}
public void setCourseCredit(int courseCredit) {
this.courseCredit = courseCredit;
}
} }
Loading…
Cancel
Save