Browse Source

Added getCourses for the class Student

remotes/origin/fdai7780
fdai7600 11 months ago
parent
commit
4d6f2581f7
  1. 4
      src/main/java/org/example/Student.java

4
src/main/java/org/example/Student.java

@ -55,6 +55,10 @@ public class Student {
this.studentRole = studentRole;
}
public List<Course> getCourses() {
return courses;
}
/**
* Prints the basic information of the student in the console.
* This methods displays the student´s ID, name and role, providing a quick overview of the student´s identity

Loading…
Cancel
Save