Files
WS-02-intro-to-oop/src/CourseRegistrationStarter/Main.java
T

28 lines
793 B
Java

package CourseRegistrationStarter;
public class Main {
public static void main(String[] args) {
Course AP = new Course("Advanced Programming", "4041122334", 40);
Course FM = new Course("Foundation of Math", "4041212334", 30);
Course GM = new Course("General Math","4041234123",60);
Student farnam = new Student("Farnam", "404111234");
farnam.setLimitOfCourses(3);
RegistrationSystem regSys = new RegistrationSystem();
regSys.addCourseToSystem(AP);
regSys.addCourseToSystem(FM);
regSys.addCourseToSystem(GM);
farnam.addCourse(AP);
farnam.addCourse(FM);
farnam.addCourse(GM);
farnam.dropCourse(FM);
farnam.showRegisteredCourses();
regSys.showAllCourses();
}
}