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

04/06/2021

System Analysis and Design


System Analysis Activities
Modelling- Class Diagram

COMPUTER INFORMATION SYSTEM DEPARTMENT LEC. ZAINAB H. ALFAYEZ

Class Modelling
• Class: is a category or classification used to describe a collection of objects. Each
object belongs to a class.
• Example, students Mary, Joe, and Maria belong to the class Student.
• Classes that describe things in the problem domain are called domain classes.
• Domain classes have attributes and associations. Multiplicity applies among
classes.

COMPUTER INFORMATION SYSTEM DEPARTMENT LEC. ZAINAB H. ALFAYEZ

1
04/06/2021

Class Diagram
• Class Diagram: a diagram consisting of classes (i.e., sets of objects) and
associations among the classes.
• On a class diagram, rectangles represent classes, and the lines connecting the
rectangles show the associations among classes.

COMPUTER INFORMATION SYSTEM DEPARTMENT LEC. ZAINAB H. ALFAYEZ

Domain Model Class Diagram Notation

COMPUTER INFORMATION SYSTEM DEPARTMENT LEC. ZAINAB H. ALFAYEZ

2
04/06/2021

Class Diagram For a Bank

COMPUTER INFORMATION SYSTEM DEPARTMENT LEC. ZAINAB H. ALFAYEZ

Generalization/Specialization Relationships
• Generalization/specialization relationships are based on the idea that
people classify things in terms of similarities and differences.
• A type of hierarchical relationship in which subordinate classes are subsets of
objects of the superior classes; an inheritance hierarchy.
• Super class the superior or more general class in a generalization /
specialization relationship.
• Subclass the subordinate or more specialized class in a generalization/
specialization relationship
• Inheritance the concept that specialization classes inherit the attributes of the
generalization class

COMPUTER INFORMATION SYSTEM DEPARTMENT LEC. ZAINAB H. ALFAYEZ

3
04/06/2021

Generalization/specialization relationships
for motor vehicles

COMPUTER INFORMATION SYSTEM DEPARTMENT LEC. ZAINAB H. ALFAYEZ

Generalization/specialization relationships
(inheritance) for sales

COMPUTER INFORMATION SYSTEM DEPARTMENT LEC. ZAINAB H. ALFAYEZ

4
04/06/2021

COMPUTER INFORMATION SYSTEM DEPARTMENT LEC. ZAINAB H. ALFAYEZ

You might also like