
18 Chapter 2 User-Defined Types
have the attribute is to prohibit storing a m0vi e instance into a location declared
as one of its subtypes.
As a result, substitutability works only in one direction!
2.9.7 Implementation Versus Interface
In section 2.9.4, you learned that SQL:1999 supports only single inheritance type
hierarchies. Another well-known language that supports only single inheritance
is Java; however, Java supports single inheritance of
implementation
(meaning
stored data analogous to SQL's attributes, along with the code of methods), but
multiple inheritance of
interface
(meaning the signatures of methods). SQL:1999 ...