uml - courses.cecs.anu.edu.aucourses.cecs.anu.edu.au/courses/comp6710/lectures/s02.pdf ·...
TRANSCRIPT
Introduction to Software Systems 1110/1140/1510/6710
UML
Unified Modeling Language Standardized modeling language, includes a set of graphic notations to create visual models of object-oriented systems. We will only consider class diagrams. We only model user-defined classes (not String, for example)
9 28-32
S2 UML
Introduction to Software Systems 1110/1140/1510/6710
UML Class Diagrams
10
Classes represented by boxes with 3 parts: • Name of class • Attributes of class (fields) • Methods of class
28-32
UML S2
Introduction to Software Systems 1110/1140/1510/6710
UML Member Attributes
11
Common notation: • public (+) • private (-) • protected (#) • package (~) • static (underline).
28-32
S2 UML
Introduction to Software Systems 1110/1140/1510/6710
UML Relationships
12
We will limit ourselves to the following: • Inheritance (is a) • Interface implementation (does this) • Composition (is composed of) • Aggregation (is made up of) • Dependency (uses a)
28-32
S2 UML