Assume the following business rules: A course contains many Sections, but each Section references only one

Question:

Assume the following business rules:

• A course contains many Sections, but each Section references only one course.

• A Section is taught by one professor, but each professor may teach one or more different Sections of one or more courses.

• A Section may contain many students, and each student may be enrolled in many Sections.

• A Section may contain many students, and each student is enrolled in many Sections, but each Section belongs to a different course. (Students may take many courses, but they cannot take many Sections of the same course.)

• Each Section is taught in one room, but each room may be used to teach different Sections of one or more courses.

• A professor advises many students, but a student has only one advisor.


Based on those business rules:

a. Identify and describe the main classes of objects.

b. Modify your description in Part (a) to include the use of abstract data types such as NAME, DOB, and ADDRESS.

c. Use object-representation diagrams to show the relationships between:

• Course and Section.

• Section and Professor.

• Professor and Student.

d. Use object representation diagrams to show the relationships between:

• Section and Student.

• Room and Section.


What type of object is necessary to represent those relationships?

e. Using an OO generalization, define a superclass PERSON for STUDENT and PROFESSOR. Describe this new superclass and its relationship to its subclasses.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: