Chapter 34. Inheritance, References, and Collections

Inheritance of Data Types

In the introduction of this part, we mentioned that not all object-relational concepts are considered to be object-oriented. The concepts that we discuss in this chapter are definitely object-oriented: inheritance, references or row identifications, and collections.

The most important OO concept is inheritance. Most specialists also find it the most appealing concept. With inheritance of data types, one data type inherits all the properties of another data type and can contain a few additional properties itself. By “properties,” we mean, for example, the columns the data type consists of or the functions defined on that data type.

Example 34.1. Define the named row data ...

Get Introduction to SQL: Mastering the Relational Database Language, Fourth Edition/20th Anniversary 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.