Browse Source

Adding constructors in Course class

remotes/origin/fdai7780
fdai7921 11 months ago
parent
commit
a0be58f7b9
  1. 9
      src/main/java/org/example/Course.java

9
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;
}
}
Loading…
Cancel
Save