Chapter 4
Chapter 4
subclasses.
For eg: a salaried employee who is an engineer belongs to the two subclasses
Since, an entity in the subclass represents the same real-world entity from the
superclass, it should possess values for its specific attributes.
An entity that is a member of a subclass inherits all the attributes of the
entity as the member of the superclass.
Also, it inherits all the relationships in which the superclass participates.
type or superclass.
The set of subclasses that forms a specialization is defined on the basis
distinguishing characteristics.
specialization of the superclass EMPLOYEE entity type based on the method of pay.
Both CAR and TRUCK entities are now subclasses of the generalized superclass
VEHICLE.
Notice that generalization process can be viewed as being
functionally the inverse of the specialization process.
Hence, in the above figure, it can be viewed {CAR, TRUCK} as a
specialization of VEHICLE, rather than viewing VEHICLE as a
generalization of CAR and TRUCK.
Similarly, from the previous example, EMPLOYEE can be viewed
as a generalization of SECRETARY, TECHNICIAN and
ENGINEER.
A diagrammatic notation (normally an arrow)to distinguish
between generalization and specialization is used in some design
methodologies, but the decision as to which process more
Constraints on Specialization & Generalization
A total specialization constraint specifies that every entity in the super class must be
This is shown in EER diagrams by double line to connect the super class to the circle.
A single line is used to display a partial specialization, which shows an entity may
Disjoint, partial
Overlapping, total
Overlapping, partial
Example of disjoint partial Specialization
Example of overlapping total Specialization
Certain insertion and deletion rules apply to specialization (and
generalization) as a consequence of the constraints specified earlier.
Some of the rules are as follows;