Class Diagram Description:
(1)
The user class is the base class for users of a system role. Methods are:
SetID () sets the ID number of the newly created object.
GetID () Gets the ID number of the object.
SetPassword () Sets the password for the new object.
GetPassword () Gets the password for the object.
User () is a constructor.
(2)
The admin class inherits from the user class. Methods are:
Modifycourse () can call the methods in the course control class to implement the Administrator's right to have teachers to modify;
Modifyelect () can call the methods in the elect control class to implement the Administrator's right to have teachers to modify;
Selectcourse (), Selectelect () has the same effect as above, making changes to the corresponding section.
(3)
The student class inherits from the user class, and the main methods are:
Selectelect () is used for querying relevant information;
Delelect () to delete the course selected by the student;
Addelect () invokes the control class implementation to add the course;
Updateelect () is used to update Students ' course selection information.
(4) Teacher class inherits from user
Classes, the main methods are:
Addcourse () for adding teachers;
Delcourse () to remove a teacher;
Updatecourse ()
Used to update teacher information;
Teacher () is used to get a list of teachers.
(5)
The course class is a course class, and the main methods are:
Addcourse () to add a course;
Delcourse () to delete a course;
Updatecourse () to modify course information;
Getcourses () is used to get a list of courses.
(6) Elect class is a class of selected classes, the main methods are:
Elect () elective courses;
Electdel () opt-out course;
Getelectinfo () to obtain the information of course selection;
Havesubmit () test whether the results have been submitted;
Submitscore () Submit results.
Design class diagram of online course selection system