Design class diagram of online course selection system

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.