





























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






























UML Class Diagrams
Name
Name
State
Variables
Behavior
Methods
Association
Car
and
Engine
classes know about each other
Associations w/ Navigation Information
Gas Pedal
class knows about
Engine
class
Engine
class doesn’t know about
Gas Pedal class
Multiplicity of Associations
0, 1, or more
5 exactly
between 5 and 8, inclusive
5 or more
Multiplicity of Associations
Bank has many ATMs, ATM knows only 1 bank
Inventory has many items, items know 1 inventory
Dependency
A uses object of class B
Dependency
Local variable Parameter Return value
Class A {
Class B {
Foo(
x) {
y = new B();
return y;
Generalization
Laptop, Desktop, PDA inherit
state & behavior from Computers
Implementation
A implements interface B
UML Example – Veterinary System
UML Example – Veterinary System
1 or more Pets associated with 1 PetOwner
UML Example – Computer System
1 CPU associated with 0 or more Controllers
1-4 DiskDrives associated with 1 SCSIController
SCSIController is a (specialized) Controller
UML Example – Banking System