Lecture 4
Lecture 4
Introduction to UML
OO Modeling & Class
Diagrams
BY: DR. SARAH NAIEM
M AT E R I A L S O U R C E :
DR. AMR GHONIEM
S Y S T E M S A N A LY S I S A N D D E S I G N I N A C H A N G I N G W O R L D , 7 T H E D I T I O N
THE SOFTWARE PROCESS
2
MODELLING
Static diagrams
▪Describe the static structure of the system: Classes, Objects, attributes,
associations.
Dynamic diagrams:
▪Interaction diagrams
▪ Describe the interaction between objects of the system
▪State diagrams
▪ Describe the temporal or behavioral aspect of an individual object
▪Activity diagrams
▪ Describe the dynamic behavior of a system, in particular the workflow.
14
• Each object is an instance of a class
3 2
In Department of At the
Motor Vehicles mechani
c
20
Superclass
◦ the superior or more general class in a generalization/specialization
hierarchy
Subclass
◦ the subordinate or more specialized class in a
generalization/specialization hierarchy
Inheritance
◦ the concept that subclasses classes inherit characteristics of the
more general superclass
Inheritance
INHERITANCE
Inheritance is the sharing of features (attributes and
operations) among classes based on a hierarchical
relationship.
A superclass (also parent or base ) has general
features that sublcasses (child or derived ) inherit.
and may refine some of them.
Inheritance is one of the strongest features of OO
technology.
customers or users