6.5. Subtyping

If instances of an object type are classified into a more specific type, this specialized type is known as a subtype. Consider, for example, the Person type, shown in Figure 6.30. For discussion purposes, this is populated with eight people, depicted by clip art shapes. Each person’s gender and birth country are recorded. The two instances of Gender are denoted by the biological symbols for male and female. Countries are denoted by their map shapes (only Australia, Italy, and Mexico are shown here).

Figure 6.30. Person classified into subtypes according to gender or birthplace.

Based on gender, we could classify Person into ...

Get Information Modeling and Relational Databases, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.