Classification

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

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

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy