System Design - OOD-9
System Design - OOD-9
D R . LO B N A M O H A M E D A B O U E L - M A G D
Object Oriented
System Design
Classes and Objects
A class is the general template we use to define and
create specific instances, or objects.
Every object is associated with a class.
For example, all of the objects that capture information
about patients could fall into a class called Patient,
because there are attributes and methods that all
patients share.
Object Oriented Design
Object-oriented systems focus on capturing the structure
and behavior of information systems in little modules that
encompass both data and processes.
These little modules are known as objects
• in most object-oriented programming
languages, both classes and instances of
classes can have attributes and methods.
A use case diagram illustrates in a very simple way the main functions of
the system and the different kinds of users who will interact with it.
Creating a Use Case Diagram
You should note that the use case diagram is similar to
information found in DFD context and level 0 diagrams.
Identify Use Cases
Draw the System Boundary
Place the Use Cases on the Diagram
Identify the Actors
Add Association Relationships
CLASS DIAGRAM
• The class diagram is a static model that supports the static
view of the evolving system.
• It shows the classes and the relationships among the classes
that remain constant in the system over time.
• The class diagram is very similar to the entity relationship
diagram (ERD) ; however, the class diagram depicts classes,
which include attributes, behaviors, and states, while entities
in the ERD include only attributes.
Elements of a Class Diagram
Represents a kind of person, place, or
thing about which the system must
capture and store information.
Has a name typed in bold and centered
in its top compartment.
Has a list of attributes in its middle
compartment.
Has a list of operations in its bottom
compartment.
Does not explicitly show operations that
are available to all classes.
Identify the States The first step is to identify the various states that a
selected tune will have over its lifetime.
Identify the Transitions The next step is to identify the sequence of
states that selected tune object will pass through during its lifetime and
then determine exact what causes each state to occur.
exercise
Draw the Use Case and class diagram of your project