~/ learn/ comp-378/ cards/ Supertypes, Subtypes & Inheritance
1 of 4

Type the EMPLOYEE supertype with its three subtypes (attribute placement).

Type the EMPLOYEE supertype with its three subtypes (attribute placement).

Answer

EMPLOYEE(Employee_Number, Name, Address, Date_Hired) HOURLY_EMPLOYEE(Hourly_Rate) SALARIED_EMPLOYEE(Annual_Salary, Stock_Option) CONSULTANT(Billing_Rate, Contract_Number)

Shared attributes (incl. the identifier Employee_Number) sit on the supertype; each subtype lists only what is unique to it. A CONSULTANT instance inherits the four EMPLOYEE attributes and adds two of its own — zero nulls, zero repetition.

space flip · ← → navigate · esc to exit
NORMAL ~/memra/library/a0ac3490-1cb0-496f-9e0c-9bdb00816088/flashcard utf-8 LF