





























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An overview of uml (unified modeling language) class diagrams, focusing on java programming. It explains the different types of relationships between classes, such as association, dependency, and generalization, and their notation. It also covers the concept of multiplicity and its notation. Examples of uml class diagrams for various systems, such as veterinary, computer, banking, and home heating systems, and provides instructions on how to derive java code from uml class diagrams and vice versa.
Typology: Study notes
1 / 37
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