CLASSIFICATION
CHAPTER OUTLINES
• Classification.
• Hierarchical Relationship of Classes.
• Generalization/Specialization.
• Organization of Class Hierarchy.
• Abstract and Concrete Class.
2
4.1 CLASSIFICATION
The acts of identifying and categorizing similar objects into classes.
3
4.2 HIERARCHICAL RELATIONSHIP OF CLASSES
Person Superclass
Subclass
Superclass &
Customer Employee
Subclass
Subclass Manager SalesPerson Subclass
• Classes can be organized in a hierarchical manner.
• A specialized class is knows as subclass.
• A generalized class is known as a superclass of a subclass.
4
5
4.3 Generalization & Specialization
Generalization
WargaUMT
Staff Student
Academic Support UnderGraduate PostGraduate
Staff Staff
Specialization
A class hierarchy for WargaUMT
6
4.5 ABSTRACT CLASS
What is abstract class in Object Oriented Modeling?
Classes in a class hierarchy that are so general that there is really no intention
to create objects from them, which contain common attributes
or methods of subclasses for reuse purpose.
E.g.:
• Animal-with-Backbone class has been included into the class hierarchy to
contain properties similar to objects in classes Mammal, Fish, Bird, Reptile,
and Amphibian.
• Animal-without-Backbone class abstract general information about insects
• Animal class generalizes all common properties of classes in its definition
7
4.5 ABSTRACT CLASS (CONT’)
Defining abstract class Entity