From 34a3af4df515df69756d72cfb8ced45bce323400 Mon Sep 17 00:00:00 2001 From: fdai7921 Date: Tue, 6 Feb 2024 22:39:04 +0100 Subject: [PATCH] Adding getters and setters in Course class --- src/main/java/org/example/Course.java | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/main/java/org/example/Course.java b/src/main/java/org/example/Course.java index 0c238df..f9f668a 100644 --- a/src/main/java/org/example/Course.java +++ b/src/main/java/org/example/Course.java @@ -16,4 +16,28 @@ public class Course { this.courseCode = courseCode; 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; + } }