CHAPTER 12: OBJECT and OBJECT-RELATIONAL DATABASES
Answers to Selected Exercises
12.25 – Convert the example of GEOMETRY_OBJECTS given in section 11.1.5 from the
functional notation to the notation given in Figure 11.2 that distinguishes between attributes
and operations. Use the keyword INHERIT to show that one class inherits from another
class.
Answer:
(GEOMETRY_OBJECTS to attribute/operation)
define class GEO_OBJECT:
type tuple ( shape : enumerated(rectangle, triangle, circle);
refpoint : tuple ( x: float,
y: float) );
12.26 – Compare inheritance in the EER model (see Chapter 8) to inheritance in the OO
model described in Section 11.1.5.
Answer:
(EER inheritance vs. OO inheritance)
EER inheritance has closer correspondence to the real world, in the sense that it is