Consider the following type in CODM: [Name: STRING, Members: {Person}, Address: [Building: INTEGER, Room: INTEGER]]. Give three examples of subtype for this type. In one example, add more structure to the attribute Members; in another, add structure to the attribute Address; and in the third, add structure by introducing new attributes.

What will be an ideal response?


In the ?rst example, replace Person with Employee. In the second, add the attribute Floor of type INTEGER to the type of Address. In the last example, add the attribute Manager of type Person to the top-level type.

Computer Science & Information Technology

You might also like to view...

The Election service must ensure that a vote is recorded whenever any user thinks they have cast a vote. Discuss the effect of maybe call semantics on the Election service. Would at-least-once call semantics be acceptable for the Election service or would you recommend at-most-once call semantics?

What will be an ideal response?

Computer Science & Information Technology

The key to MS-DOS interrupt processing is a(n) __________.

a. API b. command line interface c. interrupt vector table d. none of the above

Computer Science & Information Technology

In single inheritance, a base class exists in a(n) ___________ relationship with its derived classes.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

All of the following statements are TRUE about the VLOOKUP function EXCEPT:

A) The HLOOKUP function is more commonly used. than the VLOOKUP function. B) VLOOKUP functions are extremely valuable when working with tables where the data is in columns. C) You can use to look up a value and then, using that value as a reference, return data that is associated with that value. D) The "V" in VLOOKUP stands for vertical and is used when your comparison values are located in a column or vertically to the left of the data that you want to find.

Computer Science & Information Technology