IT2040_Lecture01_2025
IT2040_Lecture01_2025
ISA ISA
contractI
salary d salary
GPA
Permanent Contract
Employee Employee Student Faculty member
Hours_
Hours_ Student overlaps faculty member
worke
rate
d
COVERING CONSTRAINT
Covering constraints determine whether the entities in the
subclasses collectively include all entities in the super class.
For example, does every employee entity e, belong to one of its subclasses
(i.e. permanent employee or contract employee)? If so we denote this by
writing permanent employee and contract employee covers employee.
Does every person p in a university environment belong to either student
sub class or the faculty member sub class? Probably not. Therefore, there is
no covering constraint associated with the hierarchy.
Existence of a covering constraint is also know as having a total
specialization.
Absence of a covering constraint in a class hierarchy is known as
COVERING CONSTRAINT (CONTD.)
ename name
eId age age
NIC
Employee Person
ISA ISA
contractI
salary d salary
GPA
Permanent Contract
Employee Employee Student Faculty member
Hours_
Permanent employee and contract employee
worke
covers employee
d
ACTIVITY