Professional Documents
Culture Documents
1
Object Oriented Design with UML
2
What is Use Case Diagrams
3
Use Case, Actor and Communications
A use case diagram is a collection of actors, use cases, and their communications.
4
Use Case Diagram
Doctor Channeling System
5
Use Case Diagram for ATM System
6
Use Case Diagram for a Library
User
Librarian
7
Use Case Diagram for eBay
8
Use Case Diagram for a Hotel
9
Class Diagrams
2. Class Hierarchies
3. Class Associations
4. Class Aggregations
5. Class Composition
6. Class Generalization
10
Classes, their attributes and operations
Account No.
Date Opened Data/ Attributes
Balance
Deposit ()
Withdraw () Methods/ Operations
Check Balance
11
Hierarchy Relationship of Class
Diagram
Product
Product No.
This shows a “is a kind of” relationships
Description
inheritance.
Price
Set Price ()
Show Details ()
12
Association Relationship of a Class
Diagram
An association is are relationship between classes. It includes cardinality/multiplicity constrains.
It is a symmetrical (Balanced) relationship between 2 classes, which specifies the manner (way) in
which, objects belong to the 2 classes are related.
13
Aggregation Relationship of a Class
Diagram
Aggregation implies relationships where the child can exist independently of the
parent.
Aggregation is more specific than association.
14
Composition Relationship of a
Class Diagram
Composition is a stronger variant of the "has a" association relationship.
Composition implies relationships where the child can not exit independent of the
parent.
15
Generalization Relationship of a
Class Diagram
A generalization is used when two classes are similar, but have some differences. Following example
the classes Corporate Customer and Personal Customer have some similarities such as name and
address, but each class has some of its own attributes and operations.
16
17
Class Diagram - Order Processing
System
18
Class Diagram – Online Shopping
System
19
Lesson Summary
20