From a0be58f7b989e88659a563706ea4155a59581cf8 Mon Sep 17 00:00:00 2001 From: fdai7921 Date: Tue, 6 Feb 2024 22:37:54 +0100 Subject: [PATCH] Adding constructors in Course class --- src/main/java/org/example/Course.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/org/example/Course.java b/src/main/java/org/example/Course.java index 966d90b..0c238df 100644 --- a/src/main/java/org/example/Course.java +++ b/src/main/java/org/example/Course.java @@ -7,4 +7,13 @@ public class Course { private String courseCode; private int courseCredit; + + public Course() { + } + + public Course(String courseName, String courseCode, int courseCredit) { + this.courseName = courseName; + this.courseCode = courseCode; + this.courseCredit = courseCredit; + } }