0 votes
94 views
in DataBase Management System by (98.9k points)
edited
Explain Generalization & Specialization with an example.

1 Answer

0 votes
by (98.9k points)
selected by
 
Best answer

Generalization:

  • Generalization is a reverse process of abstraction in which differences among several entity types are suppressed i.e. common features are identified and generalized into a single superclass.
  • For example, consider the entity types CAR and TRUCK, they have common attributes like model number, manufacturer name, etc. and can be generalized into the entity type VEHICLE.
  • The generalization process can be viewed as being functionally the inverse of the specialization process

 

Specialization:

  • Specialization is the process of defining a set of subclasses of an entity type; this entity type is called the superclass of the specialization.
  • This set of subclasses is defined on the basis of some distinguishing characteristic of the entities in the superclass.
  • For example, the set of subclasses {SECRETARY, ENGINEER, TECHNICIAN} is a specialization of the superclass EMPLOYEE that distinguishes among employee entities based on the job type of each employee entity.
  • It is possible to have several specializations of the same entity type based on different distinguishing characteristics. For example, another specialization of the EMPLOYEE entity type may yield the set of subclasses {SALARIED_EMPLOYEE, HOURLY_EMPLOYEE}; this specialization distinguishes among employees based on the method of pay.

Related questions

0 votes
1 answer 101 views
0 votes
1 answer 134 views
0 votes
1 answer 121 views
0 votes
1 answer 89 views
0 votes
1 answer 191 views
0 votes
1 answer 124 views

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

5.7k questions

5.1k answers

108 comments

535 users

...