Tuesday, July 6, 2010

Pattern Study - UML

Class 
  • Class
  • - attribute
  • + operations()
Interface
  • <<interface>>
  • IClass
  • +operations()
Note
  • descriptive text
Package (grouping of classes and interfaces
  • Package
Inheritance
  • A <--- B (horizontal) : B inherits from A
Realization
  • A <-- B (horizontal): B implements A
Association
  • A --- B: A and B call and access each other's elements
Association (one way)
  • A --> B: A can call and access B's elements, but no vice versa
Aggregation
  • A <>--- B:  A has a B, and B can outlive A
Composition
  • A <<>>--- B:  A has a B, and B depends on A.

No comments: