Give examples from the Student Registration System where
a. It would be convenient to use a set-valued attribute.
b. It would be convenient to express a relationship (in the ODMG style) between two objects.
c. It would be convenient to use inheritance.
a. The information about the semesters in which a particular course is o?ered (which is represented by the attribute SemestersOffered in Figure 4.33).
CREATE TYPE Course AS (
...
SemestersOffered CHAR(6) MULTISET,
...
)
or
class Course {
...
attribute SetSemestersOffered;
...
}
b. The relationship Requires in Figure 4.33:
class Course {
...
relationship SetRequires
...
}
c. The class Class inherits from Course:
CREATE TYPE Class UNDER Course AS (
...
)
or
class Class extends Course {
...
}
You might also like to view...
All of the statements about saving a slide as a picture are true, EXCEPT:
A) The Just This One option creates a JPEG file of the displayed slide. B) The All Slides option creates a folder containing JPEG files for each slide in the presentation. C) JPEG (or JPG) is an abbreviation that stands for Joint Photographic Experts Group. D) JPEG (or JPG) is a file format used for photos and includes the .mp4 extension.
Do point-and-shoot cameras have interchangeable lenses?
What will be an ideal response?