













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
Material Type: Notes; Professor: Padua-Perez; Class: OBJECT-ORIENTED PROG II; Subject: Computer Science; University: University of Maryland; Term: Unknown 2006;
Typology: Study notes
1 / 21
This page cannot be seen from the preview
Don't miss anything!














UML Examples
Pets & owners Computer disk organization Banking system Home heating system
UML Example โ Veterinary System Try to read & understand UML diagram โข^
1 or more Pets associated with 1 PetOwner
UML Example โ Computer System
UML Example โ Banking System
UML Example โ Banking System
-^
1 Bank associated with 0 or more Accounts
-^
Checking, Savings, MoneyMarket are Accounts
UML Example โ Home Heating System
Each Thermostat is associated with 1 Room
-^
Each Thermostat associated with 0 or more Heaters
-^
ElectricHeater is a specialized Heater
-^
AubeTH101D is a specialized Thermostat
UML Class Diagrams
โโโโ
Java
Name, state, behavior of class Relationship(s) between classes
Accurately depicting relationship between classes
UML
โโโโ
Java : Veterinary System
PetOwner myOwner;
// 1 owner for each pet
} class PetOwner {
Pet [ ] myPets;
// multiple pets for each owner
Java
โโโโ
UML : Veterinary System
PetOwner myOwner;
// 1 owner for each pet
} class PetOwner {
Pet [ ] myPets;
// multiple pets for each owner
UML Class Diagrams
โโโโ
Java
PetOwner myOwner;
// 1 owner for each pet
} class PetOwner {
Pet [ ] myPets;
// multiple pets for each owner
UML
โโโโ
Java : Computer System
UML
โโโโ
Java : Computer System
Design code using all available information in UMLโฆ
UML
โโโโ
Java : Computer System
Controller [ ] myCtlrs; } class Controller {
CPU myCPU; } class SCSIController extends Controller {
DiskDrive [ ] myDrives = new DiskDrive[4]; } Class DiskDrive {
SCSIController mySCSI; }